Category Archives: PHP


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 ]


May 19, 2016 5:47 am

How to get Facebook Page Feed with graph API using PHP & MySQL


How to get Facebook Page Feed with graph API using PHP & MySQL
In this tutorial I will show you that how to get Facebook pages public feed using graph API without any authentication. You can run this script on console, on local host or you can run this script on your live website. This tutorial get a Facebook page URL and Facebook application id and secret that's it.

[ Read More ]


May 16, 2016 12:25 pm

Cloudways redefines hosting for PHP websites with their new platform [1 month free offer]


Cloudways redefines hosting for PHP websites with their new platform [1 month free offer]
PHP is an open source HTML embedded scripting language. Much of its syntax is a combination of different programming languages such as C, Java, and Perl, incorporating a number of unique custom designed PHP functions. Though its usage like any other coding languages is diverse, however, it is commonly used by web developers to write codes for dynamic website pages swiftly. It is itself a recursive acronym which stands for PHP: Hypertext Preprocessor. Feel free to enlighten yourself with the information on Recursive acronyms.

[ Read More ]