Using Doctrine ORM with Symfony PHP Framework, Part 2

The standard edition of Symfony PHP framework comes integrated with Doctrine, an object-relational mapper (ORM) and a database abstraction layer (DBAL) which makes working with databases very easy. This tutorial will focus on using Doctrine in Symfony--querying object relationships.

Posted by on 31 May 2016 | 4:03 pm

Using Doctrine ORM with Symfony PHP Framework

The standard edition of Symfony PHP framework comes integrated with Doctrine, an object-relational mapper (ORM) and a database abstraction layer (DBAL) which makes working with databases very easy. This tutorial will focus on using Doctrine in Symfony--how to create models of database tables and its relations, how to query the data, and more.

Posted by on 18 May 2016 | 12:02 pm

Combining WebComponents with PHP via PrimeElements

PrimeElements can drastically reduce the amount of work required to create nice looking and functional UIs by providing a rapid application development kit based on standard Web Components technologies. Learn more about some of the most practical PrimeElements in PHP.

Posted by on 30 April 2016 | 12:19 am

E-mail Verification in PHP

One of the most common security features during the user registration process is e-mail verification. It is important to create it according to industry best practices in order to avoid potential security risks. Let's discuss these best practices and see how to create e-mail verification in PHP.

Posted by on 18 April 2016 | 4:36 am

Working with Docker and PHP

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux. Learn how to install Docker on Windows, how to create a machine, how to pull/push an image from/to Docker Hub--and mostly importantly--how to run a PHP script by creating our Dockerfile file.

Posted by on 31 March 2016 | 3:15 pm

Read CSV Data into a PHP Array

CSV files are often employed to import data from an application such as MS Excel into a database. Rob Gravelle demonstrates how to write a PHP script that reads in a CSV file and converts its contents into a multi-dimensional array for insertion into a WordPress database.

Posted by on 17 March 2016 | 3:11 am

Creating and Editing Excel Spreadsheets in PHP

To create or edit Excel spreadsheets using pure PHP, we will use the PHPExcel library, which can read and write many spreadsheet formats, including xls, xlsx, ods and csv. Before we continue, double-check that you have PHP 5.2 or higher on your server and that the following PHP extensions are installed: php_zip, php_xml and php_gd2.

Posted by on 23 February 2016 | 11:10 am

Most Secure Password Encryption Methods in PHP

The security of sensitive information such as login credentials of an employee is a topic which has always been addressed in every programming language. Learn more password encryption with the most common methods of passwords protection in PHP.

Posted by on 12 February 2016 | 12:54 pm

Top 4 Web Server Administration Tips

Server administration is a very complicated job. It involves a Linux operating system, web server, database server, FTP and e-mail servers along with other software that can sometimes cause very unusual bugs and problems. Explore the fixes to a few PHP-related server problems.

Posted by on 31 January 2016 | 8:14 pm

Using the WideImage Library in PHP

WideImage is an object-oriented library for image manipulation that provides a simple way of loading, manipulating and saving images in the most common image formats.

Posted by on 22 January 2016 | 3:57 pm

Resize and Crop GIF Animations in PHP

When resizing and cropping images, many popular PHP packages break the GIF animation and save it as a static image. However, it is possible to resize and crop image while keeping the animation intact. In PHP, this can be achieved by using the ImageMagick extension.

Posted by on 28 December 2015 | 4:58 am

Tips for Using Session Cookies with PHP

A session cookie, also known as an in-memory cookie or transient cookie, exists only in temporary memory while the user navigates the website. Web browsers normally delete session cookies when the user closes the browser. Unlike other cookies, session cookies do not have an expiration date assigned to them, which is how the browser knows to treat them as session cookies.

Posted by on 11 December 2015 | 12:23 pm

Object Oriented Programming in PHP - Then and Now

The original development began around 1994, but PHP as most people know it (PHP3) was originally released in 1998. Twenty one years ago. TWENTY ONE YEARS. That kind of lifespan for anything on the web is pretty impressive.

Posted by on 27 November 2015 | 3:14 pm

PHP Design Patterns

Explore some of the most widely used design patterns: singleton, facade, decorator and factory.

Posted by on 30 October 2015 | 4:55 pm

Create a Remember Me Feature in PHP

The "remember me" feature on user login forms (long-term persistent authentication) is one of the most common and convenient web authentication features. It allows the user to be constantly authenticated in the application without having to enter username and password in each session. The feature is based on cookies and handling cookie data in PHP. Since we are talking about authentication, security is important and any possible security issues and solutions will be covered in this tutorial.

Posted by on 16 October 2015 | 3:35 pm

Top Five Databases to Use with PHP

Although MySQL is the most commonly used database software in web applications, there are many other database systems that are also popular and provide good solutions in certain use-cases. In this article, we will discuss these systems and their advantages and disadvantages.

Posted by on 30 September 2015 | 11:58 am

Converting Dates Between Time Zones in PHP

Every developer has to deal with it at some point in their career. It is always there. It is persistent, relentlessly ticking away and eating productivity. It keeps track of when things happen, and can cause you pain when trying to work with it. What is it? Time (and time zones in particular).

Posted by on 17 September 2015 | 1:53 pm

Working with PHP and MongoDB

Learn how to install the MongoDB server and the PHP MongoDB driver for them to work well together. You also saw how to use MongoDB CRUD operation from PHP, using the implicit MongoDB database and a newly created database.

Posted by on 31 August 2015 | 3:49 pm

Creating Framework-Agnostic PHP Packages

One of the common problems with PHP used to be that if you chose to use a particular framework, you were only able to use the libraries and plugins that are made specifically for that PHP framework. It was difficult to switch the frameworks or to re-use the code between frameworks. However, PHP has experienced major changes recently. Composer, a package manager widely used by PHP developers, and latest generation frameworks, such as Laravel and Symfony, have enabled PHP developers to create framework-agnostic packages.

Posted by on 20 August 2015 | 4:35 pm