Tutorials and Talks How To Setup Your Own PHP PEAR Environment

In this article, we will show you how to setup your own PEAR Environment for PHP, assuming you have a basic knowledge of SSH and how to log into SSH.



Building a Web App With Symfony 2 Development

Taylor Ren has posted the next in his "Building an Application with Symfony2" series. In this new post he moves past the initial setup and into some actual development. He shows you how to set up some sample routes (the example application shows information about books) and starts with the "home" route to make the first controller. He uses Doctrine to manage the database entities/repositories and includes the code to create them. Finally Ren makes the views and templates for this first route and shows the end result.



How to install MongoDB PHP extension

On the How To tutorials website - In our last tutorials I’ve showed you how to install MongoDB server directly on a linux Debian or Centos. The process is simple and you just need about 10 minutes or so for the average beginner to start working from shell with MongoDB. But what comes next is using a programming language like PHP to connect directly from a website to our noSQL database server. In this tutorial I will go through the steps you need to run to install MongoDB PHP extension on debian / Ubuntu operating system.



Install PHP 5.3 Mysql 5.5 Apache on Debian

On the How To tutorial website - The other day I had a friend who just ordered a new bare VPS server and wanted to install phpmyadmin on it and run some php scripts and storing into a mysql database. He was running an OpenVZ Debian installation and I thought that it would be a nice tutorial for other users trying to install PHP 5.3 Mysql 5.5 Apache on Debian. So here it is, I’ll go with a step by step with what you would need to use to get everything installed.



Step by Step Guide How to Configure Server for PHP / Symfony Project

If you're looking into using Symfony2 for your application and want to be sure your environment is set up correctly, you should definitely check out this new post from Konrad Podgórski. It's a very detailed guide to getting the full environment set up, also including setup of NodeJS and Capifony for deployment.



A Peek At Aura v2 -- Aura.Sql and ExtendedPdo

On the Aura blog Paul Jones has posted a look ahead for the framework, looking specifically at what's coming in version 2 for the Aura.Sql and ExtendedPdo functionality. He gives the example of Aura.Sql compared to the Solar_Sql (from the Solar framework) and how certain things that they thought needed to be coupled actually didn't. In version 2 of the Aura.Sql component they're taking this same approach and abstracting out things that don't actually need to be in the base class. This breaks it up into three packages - Aura.Sql-v2, Aura.Sql_Query and Aura.Sql_Schema. He gets into more detail in the rest of the post as to what the new Aura.Sql (v2) will still handle.



Injecting Repositories to Service in Symfony2

Wojciech Sznapka has an interesting post on his site talking about injecting repositories into services in Symfony2-based applications. By injecting just a single repository instead of the entire EntityManager, you get a cleaner, more clear interface defined in the code. He includes some code to illustrate his point - both a "services.xml" configuration of the related dependency injection container and a custom entity repository (defined in the config). He then shows how this repository (FooRepository) would be injected into the service (FooService) via constructor injection.



Active Record vs Data Mapper for Persistence

Russell Walker has written a post comparing two popular methods for abstracting out database access and working with your data - the Active Record and Data Mapper patterns for data persistence. He gives simple code examples of both - one showing a basic "save" call with Active Record and the other showing the saving of a "Foo" entity using similar logic. Along with these examples he includes a few points about the major advantages and disadvantages related to the pattern. He also talks some about "service objects", the go-between that the data mapper pattern uses to combine business logic and the mapper object. He ends the post by making some suggestions about which to use, depending on the need of course.



Laravel 4 and NodeJs/Redis pub/sub Realtime Notifications

On VilkomenJuist.nl there's a recent post showing you how to create a real-time notification system with PHP using Laravel, NodeJs and Redis. The post has all of the code and configuration you'll need to reproduce the setup. This includes the Laravel Redis config, code for the event handler and the Node server listening for the socket connection.



Running Symfony Standard Edition on HHVM

On the Qandidate.com blog they have a post (the second in a series, actually) about getting a Symfony application running on HHVM, the virtual machine version of the HipHop engine originally developed by Facebook. In this second post they show how to install and configure Symfony in a newly installed HHVM instance.



Playing with parse.com API

Hasin Hayder writes - I’ve started using Parse.com API not more than a week ago, and I've already fallen in love with it. The first thing that hit me was “whoa, no extra work for storing objects in my database” and that’s really it. Saving data was never easier. Parse.com’s javascript API, the documentation is very good and it will help you to start your project in no time. Besides diving into the details, let me highlight another cool feature of Parse.com API - the user management. Sign up someone, or let someone sign in, validate their email? Everything is there!



Selling Downloads with Stripe and Laravel

Digital goods are an increasingly valuable commodity. Whether you're a designer selling templates or font files, a developer charging for packages of code or a musician selling MP3s, selling digital goods online is often far easier than physical goods – with much lower production costs and no delivery charges. In this article, Lukas White shows how you can implement a simple store selling digital goods using PHP along with Stripe, a payment provider who aims to make it easier than ever to take online payments since you don't need to set up special merchant accounts or deal with complex payment gateways.



Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 13.10 Server

LAMP is a combination of operating system and open-source software stack. The acronym LAMP is derived from the first letters of Linux, Apache HTTP Server, MySQL database and PHP, Perl or Python. We already have shown you how to install LAMP on many platforms. In this tutorial, let us install a LAMP server on Ubuntu 13.10 Server edition. My testbox hostname and IP address are server.unixmen.com and 192.168.1.101/24, respectively.



How To Use Memcached with PHP

This follows on from an earlier post explaining how you can install the memcached server and also how to get the php extension installed, but never actually showing you how you can use it. There are a number of cases where you would use this, be it to cache mysql queries, login sessions or any type of data that could repeat themselves over and over. Using memcached server to cache such data will drastically improve performance and speed your website by at least by 50%. In this article, we will show you how to setup your own PEAR Environment for PHP, assuming you have a basic knowledge of SSH and how to log into SSH.Taylor Ren has posted the next in his "Building an Application with Symfony2" series. In this new post he moves past the initial setup and into some actual development. He shows you how to set up some sample routes (the example application shows information about books) and starts with the "home" route to make the first controller. He uses Doctrine to manage the database entities/repositories and includes the code to create them. Finally Ren makes the views and templates for this first route and shows the end result.On the How To tutorials website - In our last tutorials I’ve showed you how to install MongoDB server directly on a linux Debian or Centos. The process is simple and you just need about 10 minutes or so for the average beginner to start working from shell with MongoDB. But what comes next is using a programming language like PHP to connect directly from a website to our noSQL database server. In this tutorial I will go through the steps you need to run to install MongoDB PHP extension on debian / Ubuntu operating system.On the How To tutorial website - The other day I had a friend who just ordered a new bare VPS server and wanted to install phpmyadmin on it and run some php scripts and storing into a mysql database. He was running an OpenVZ Debian installation and I thought that it would be a nice tutorial for other users trying to install PHP 5.3 Mysql 5.5 Apache on Debian. So here it is, I’ll go with a step by step with what you would need to use to get everything installed.If you're looking into using Symfony2 for your application and want to be sure your environment is set up correctly, you should definitely check out this new post from Konrad Podgórski. It's a very detailed guide to getting the full environment set up, also including setup of NodeJS and Capifony for deployment.On the Aura blog Paul Jones has posted a look ahead for the framework, looking specifically at what's coming in version 2 for the Aura.Sql and ExtendedPdo functionality. He gives the example of Aura.Sql compared to the Solar_Sql (from the Solar framework) and how certain things that they thought needed to be coupled actually didn't. In version 2 of the Aura.Sql component they're taking this same approach and abstracting out things that don't actually need to be in the base class. This breaks it up into three packages - Aura.Sql-v2, Aura.Sql_Query and Aura.Sql_Schema. He gets into more detail in the rest of the post as to what the new Aura.Sql (v2) will still handle.Wojciech Sznapka has an interesting post on his site talking about injecting repositories into services in Symfony2-based applications. By injecting just a single repository instead of the entire EntityManager, you get a cleaner, more clear interface defined in the code. He includes some code to illustrate his point - both a "services.xml" configuration of the related dependency injection container and a custom entity repository (defined in the config). He then shows how this repository (FooRepository) would be injected into the service (FooService) via constructor injection.Russell Walker has written a post comparing two popular methods for abstracting out database access and working with your data - the Active Record and Data Mapper patterns for data persistence. He gives simple code examples of both - one showing a basic "save" call with Active Record and the other showing the saving of a "Foo" entity using similar logic. Along with these examples he includes a few points about the major advantages and disadvantages related to the pattern. He also talks some about "service objects", the go-between that the data mapper pattern uses to combine business logic and the mapper object. He ends the post by making some suggestions about which to use, depending on the need of course.On VilkomenJuist.nl there's a recent post showing you how to create a real-time notification system with PHP using Laravel, NodeJs and Redis. The post has all of the code and configuration you'll need to reproduce the setup. This includes the Laravel Redis config, code for the event handler and the Node server listening for the socket connection.On the Qandidate.com blog they have a post (the second in a series, actually) about getting a Symfony application running on HHVM, the virtual machine version of the HipHop engine originally developed by Facebook. In this second post they show how to install and configure Symfony in a newly installed HHVM instance.Hasin Hayder writes - I’ve started using Parse.com API not more than a week ago, and I've already fallen in love with it. The first thing that hit me was “whoa, no extra work for storing objects in my database” and that’s really it. Saving data was never easier. Parse.com’s javascript API, the documentation is very good and it will help you to start your project in no time. Besides diving into the details, let me highlight another cool feature of Parse.com API - the user management. Sign up someone, or let someone sign in, validate their email? Everything is there!Digital goods are an increasingly valuable commodity. Whether you're a designer selling templates or font files, a developer charging for packages of code or a musician selling MP3s, selling digital goods online is often far easier than physical goods – with much lower production costs and no delivery charges. In this article, Lukas White shows how you can implement a simple store selling digital goods using PHP along with Stripe, a payment provider who aims to make it easier than ever to take online payments since you don't need to set up special merchant accounts or deal with complex payment gateways.LAMP is a combination of operating system and open-source software stack. The acronym LAMP is derived from the first letters of Linux, Apache HTTP Server, MySQL database and PHP, Perl or Python. We already have shown you how to install LAMP on many platforms. In this tutorial, let us install a LAMP server on Ubuntu 13.10 Server edition. My testbox hostname and IP address are server.unixmen.com and 192.168.1.101/24, respectively.This follows on from an earlier post explaining how you can install the memcached server and also how to get the php extension installed, but never actually showing you how you can use it. There are a number of cases where you would use this, be it to cache mysql queries, login sessions or any type of data that could repeat themselves over and over. Using memcached server to cache such data will drastically improve performance and speed your website by at least by 50%.