PHP Directory


  • PHP 5.6.0 released

    The PHP Development Team announces the immediate availability of PHP 5.6.0. This new version release comes with new features, some backward incompatible changes and many improvements. The main features of PHP 5.6.0 include:Constant scalar expressions.Variadic functions, and argument unpacking syntaxExponentiation operator.Function and constant importing with the use keyword.phpdbg as an interactive integrated debugger SAPI.php://input attribute changes as well as POST data parsing mechanism.GMP objects now support operator overloading.Files larger than 2 gigabytes in size are now accepted.For a full list of new features, you may read our migration guide new features chapter.PHP 5.6.0 also introduces changes that affect compatibility:Array keys won't be overwritten when defining an array as a property of a class via an array literal.json_decode() is more strict in JSON syntax parsing.Stream wrappers now verify peer certificates and host names by default when using SSL/TLS.GMP resources are now objects.Mcrypt functions now require valid keys and IVs. For users upgrading from PHP 5.5, a full migration guide is available, detailing the changes between 5.5 and 5.6.0. For source downloads of PHP 5.6.0, please visit our downloads page. Windows binaries can be found on The full list of changes is available in the ChangeLog.
  • Build a Database with Eloquent, Faker and Flysystem

    In this part, we will create the structure of the database. We will create the tables using migrations and seed the database using seeders. Also, you will learn how to grab some random images from LoremPixel and put them on the filesystem using Flysystem. You’ll also be adding some randomly generated data using the Faker library.
    Much like with part 1, you can download this part’s code from github.

    Install the libraries

    The installation is very straightforward with Composer.

    Require these projects:

    "fzaninotto/faker": "1.5.*@dev",
    "league/flysystem": "dev-feature/eventable-filesystem",
    "dropbox/dropbox-sdk": "dev-master"

    Execute composer update and everything will be installed and updated smoothly.

    Build the structure of the database

    Until now, we had just one migration file. We need two more for our application. One table that will keep the data for photos and another for categories. To find out more about Artisan and Migrations, see this post.

    php artisan migrate:make create_photos_table
    php artisan migrate:make create_categories_table

    These two commands create two migration files. Let’s start filling them with some schema. First, we start with the photos migration file. Stop for a moment and think what we need for this one. Earlier, we installed the flysystem library.

    The flysystem library can handle files on different locations: the local filesystem, Dropbox, AWS3, Rackspace Cloud Files and more. We need it for the local filesystem on our development environment and we have to use Dropbox for production. Why is that? Heroku is a Paas (Platform as a Service) so we don’t have full control of the filesystem. There are only two directories that can be writable: ./temp and ./logs. You can write files only using git for deployment, and not in any other folder. Why don`t we just use those two directories? Because they are temporary. If something goes wrong and the Dyno restarts, all the files in those directories are deleted. It’s not safe to work with those two directories.

    If you want to know more about flysystem read this article on sitepoint by Lukas White or their documentation .

    Continue reading %Build a Database with Eloquent, Faker and Flysystem%

  • Natural Language Sorting with MongoDB

  • Deployment with Zend Server (Part 1 of 8)

  • Bringing CQRS and Event Sourcing to PHP. Open sourcing Broadway!

    Last week we open sourced our toggle library, API and GUI, see our announcements here and here. Today we open source Broadway! Broadway is a project providing infrastructure and testing helpers for creating CQRS and event sourced applications. Broadway tries hard to not get in your way. The project contains several loosely coupled components that can be used together to provide a full CQRS\ES experience.

    ∞ labs @ Permalink

  • Decoupling your (event) system

  • PINQ – Querify Your Datasets – Faceted Search

  • The False Decline of PHP - Lately in PHP podcast episode 50

    By Manuel Lemos
    It seems the popularity of PHP continues to upset people that do not sympathize with the language for some reason. The release of yet another article claiming the PHP decline was one of the main topics discussed by Manuel Lemos and Arturs Sosins in the episode 50 of the Lately in PHP podcast.

    They also discussed the latest decisions about the features being planned for PHP 7, the last release of PHP 5.3 and PHP 5.4 going into security releases mode, and the (Facebook) PHP language specification effort.

    Now listen to the podcast, or watch the hangout video or read the transcript to learn more about the details of these interesting PHP discussions.
  • PHP 5.6 as Software Collection

  • What's wrong with composer and your .travis.yml?

:: Our Favorites

Featured Sites Using PHP

>Atlanta Real Estate