Author Archives: Ivan Dimov


October 4, 2016 7:50 am

Social media logins with PhoneGap


Social media logins with PhoneGap
PhoneGap is a tool that can help you make hybrid applications for different devices such as Android and iOS using HTML, CSS and JavaScript. However, there are a few differences when compared to normal websites and native apps. You would have to use plugins to do tasks that traditional websites do with ease – for example, to upload a file you would have to use the File Transfer plugin and use a different API than adding inputs with a type attribute set to file.

[ Read More ]


August 9, 2016 3:51 am

Creating a simple Slack chat bot with PHP


Creating a simple Slack chat bot with PHP
To create the bot, we are going to use Slack’s Outgoing Webhooks integration. With it, we can create any page and whenever a message is sent into a specific Slack channel or in any Slack channel your page will be called with information about the sender of the message, the message itself and other useful metadata. When a request is made to your page, you can return JSON with the property text in it and the bot will send back a response directly in the channel in which the message occurred.

[ Read More ]


July 13, 2016 5:09 pm

Creating PDFs from HTML and CSS with PHP and Dompdf


Creating PDFs from HTML and CSS with PHP and Dompdf
In this tutorial, we are going to show you how to show the user dynamically-generated PDFs from your web application that relies on PHP. We are going to use a third-party library called Dompdf that enables us to create PDFs and save them to the server or directly display them to users using only HTML and CSS.

[ Read More ]


June 30, 2016 1:38 am

An introduction to Twig templating – Creating a Sentiment Analysis app


An introduction to Twig templating - Creating a Sentiment Analysis app
We will be building a simple app which takes from the user the id/name of a Facebook page (the name written in the URL when visiting a Facebook page) and shows some statistics related to the sentiment of the last 100 posts of that Facebook page. It shows whether the page is positive, negative or neutral, how many of the last one hundred posts are considered positive, negative or neutral and it pinpoint the total distribution of positivity, negativity and neutrality in those posts.

[ Read More ]


June 30, 2016 1:34 am

An introduction to sentiment analysis with phpInsight – Creating a Sentiment Analysis app


An introduction to sentiment analysis with phpInsight - Creating a Sentiment Analysis app
We will be building a simple app which takes from the user the id/name of a Facebook page (the name written in the URL when visiting a Facebook page) and shows some statistics related to the sentiment of the last 100 posts of that Facebook page. It shows whether the page is positive, negative or neutral, how many of the last one hundred posts are considered positive, negative or neutral and it pinpoint the total distribution of positivity, negativity and neutrality in those posts.

[ Read More ]


June 30, 2016 1:31 am

An introduction to Facebook’s PHP SDK- Creating a Sentiment Analysis app


An introduction to Facebook’s PHP SDK- Creating a Sentiment Analysis app
We will be building a simple app which takes from the user the id/name of a Facebook page (the name written in the URL when visiting a Facebook page) and shows some statistics related to the sentiment of the last 100 posts of that Facebook page. It shows whether the page is positive, negative or neutral, how many of the last one hundred posts are considered positive, negative or neutral and it pinpoint the total distribution of positivity, negativity and neutrality in those posts.

[ Read More ]


June 30, 2016 12:03 am

Creating a service which converts images to ASCII in PHP


Creating a service which converts images to ASCII in PHP
Have you ever wanted to send, display or use colored ASCII versions of real images? Well, it turns out this is not something very hard to achieve with PHP. In this tutorial, we are going to create a simple class which has the capabilities to convert all kinds of URLs to jpg/gif/png images to ASCII and show the ASCII in dimensions specified by the user (we shall resize the image to the specified by the user dimensions before converting it to ASCII). Furthermore, we will build a simple web interface where users can give URLs to images and their desired dimensions and see the ASCII output as well as the HTML code that they can use to add the ASCII elsewhere.

[ Read More ]