Packagist Latest Releases for 11.27.2014
November 27, 2014 @ 08:09:20
Recent releases from the Packagist:0 comments voice your opinion now!
Blast from the Past - One Year Ago in PHP
November 27, 2014 @ 07:00:27
Here's what was popular in the PHP community one year ago today:0 comments voice your opinion now!
Laravel, BDD and You The First Feature
November 26, 2014 @ 12:19:37
NetTuts.com has posted the second part of their "Laravel, BDD and You" series (part one is here) building on their introduction in part one and building a first feature (what BDD tools call their tests).
In the second part of this series called Laravel, BDD and You, we will start describing and building our first feature using Behat and PhpSpec. In the last article we got everything set up and saw how easily we can interact with Laravel in our Behat scenarios. [...] In short, we are going to use the same .feature to design both our core domain and our user interface. I have often felt that I had a lot of duplication in my features in my acceptance/functional and integration suites. When I read everzet's suggestion about using the same feature for multiple contexts, it all clicked for me and I believe it is the way to go.
He starts in with the creation of the first feature - a simple "welcome" test that evaluates the main Laravel start page. He uses this example to set up a Laravel trait that can be reused in other parts of the testing and how to use it in a Feature Context file. He then starts to create the tests for the sample time tracking application started in part one. He gives an example of the feature file's contents, the result from its execution and the "small refactors" that it will suggest to add functionality to the feature file. With this skeleton in place, he then fleshes out the test to make it actually work with the requests. He walks through each function and provides the code needed for both the test and other tools/objects they need.
SitePoint WordPress Blog:
WordPress.org's Most Popular Plugins for 2014
November 26, 2014 @ 11:58:04
On the SitePoint WordPress blog they've made an official list of the most popular plugins for 2014 according to WordPress.org's own "Most Popular" list. They provide links to the plugins, descriptions of what they do and the current number of downloads (at the time of the post).
You might have noticed that WordPress.org lists the most popular plugins in the right sidebar in the plugins directory. As we're nearing the end of 2014, I thought it would be interesting to not only provide a quick explanation of each of these plugins, but to also explore some of the other popular alternatives. Just because a plugin is listed in the most popular list, doesn't always mean it's the best fit for your project. [...] It's not a definitive list, only based on my experiences. Hopefully you'll come across a few new plugins that you might not yet have heard of!
Plugins in their list include both some familiar names and some newcomers to the top of the pack:
As mentioned, each comes with a brief description of what they do, a link to their page on the plugin site as well as links to a few other alternatives if it's not the perfect fit.
Build a VM for Drupal 8 with Vagrant
November 26, 2014 @ 10:22:22
A new tutorial has been posted on the php[architect] site today showing you how to build a VM for Drupal 8 with the help of Vagrant.
At this year's php[world] hackathon, I spent my time getting a Vagrant machine configured to run Drupal 8. I know there are other options, like Acquia's own Dev Desktop, or even Zend Server. However, I like using Vagrant to run my LAMP stacks, especially on OS X. I've never been able to easily run xAMP on non-Linux machines. Installing MySQL can be a pain, system updates can change the version of PHP you're running, and some PHP extensions are really difficult to build-even with Homebrew. Vagrant simplifies getting a working development environment running by automating the provision of a virtual machine for you, usually with a tool like Chef, Puppet, or Ansible.
Oscar (the author) took advantage of some time at the php[world] hackathon to create the necessary files for building this environment. He walks you through the steps to creating the basic vagrant file with "config" options (explaining each one) and walks through the setup of additional options, software like Apache and Drupal. He then sets up the Ansible configuration to create the box, run the provisioning and configuration of the resulting server. Finally, he shows the result of the install if everything was successful.
SitePoint PHP Blog:
Building an Internationalized Blog with FigDice
November 26, 2014 @ 09:55:44
On the SitePoint PHP blog they've posted the second part of the series looking at using the FigDice for the templates in your application. In this new post they expand on the basics presented in part one and look at internationalization.
In part one of this two-part series I started looking at FigDice, a PHP templating system that takes a slightly different approach to most. [...] In this second and final part we're going to add a simple blog to our example site, which allows us to look in more detail at Figdice's concept of data feeds. We'll also look at internationalization, translating some of the site's content into a couple of additional languages.
In this part of the series (part two of two) they create a simple blog application based on their "Feed" class from before, faking some basic content. He then creates the factory class the FigDice templating will fetch the data from and makes a view to use it. He also talks about the optional functionality to add additional data to the feed output as attributes on the element. Finally he shows how to work all of this back into the HTTP framework under a "blog/post" URL.
Packagist Latest Releases for 11.26.2014
November 26, 2014 @ 08:05:59
Recent releases from the Packagist:
Recent posts from PHP Quickfix
November 26, 2014 @ 07:07:31
Recent posts from the PHP Quickfix site:0 comments voice your opinion now!
SitePoint PHP Blog:
Geospatial Search with SOLR and Solarium
November 25, 2014 @ 13:55:56
The SitePoint PHP blog has a new post from Lukas White that gets into the details of combining SOLR searching with Solarium to perform geospatial queries.
In a recent series of articles I looked in detail at Apache's SOLR and Solarium. To recap; SOLR is a search service with a raft of features - such as faceted search and result highlighting - which runs as a web service. Solarium is a PHP library which allows you to integrate with SOLR - whether local or remote - interacting with it as if it were a native component of your application. If you're unfamiliar with either, then my series is over here, and I'd urge you to take a look. In this article, I'm going to look at another part of SOLR which warrants its own discussion; Geospatial search.
He uses a simple example, locating airports near a given location, to give a more "real world" idea of how it all works. He starts by introducing the concept of geospatial searching and the idea of "points" as they relate to a specific location. He then gets into the actual setup of the application, including the SOLR schema configuration and making the queries on the data. The Solarium library allows for simple location queries when given just the "latlong" helper type and the location/distance to use for the starting point. He uses the data from the OpenFlights service to gather the airport data and creates a search form and basic list output of the results from searches on it. If you'd like to see the end result in action, check out this demo website.
Digging in to Laravel's IoC Container
November 25, 2014 @ 12:23:07
NetTuts.com has a new tutorial posted that digs into the Laravel IoC (Inversion of Control) container, one of the key features of the framework making it easy to create and use objects all around your applications.
Inversion of Control, or IoC, is a technique that allows control to be inverted when compared to classical procedural code. The most prominent form of IoC is, of course, Dependency Injection, or DI. Laravel's IoC container is one of the most used Laravel features, yet is probably the least understood.
He starts with an example of basic dependency injection (constructor injection) and how this relates to the Laravel framework's IoC handling (hint: it's all IoC). He includes examples of some built-in Laravel bindings and talks about the difference between shared and non-shared bindings. He also looks at conditional binding, how dependencies are resolved and how you can define your own custom binding implementations. Other topics mentioned include tagging, rebounds, rebinding and extending. He ends the article with a look at how you can use the IoC outside of Laravel too.
Don't see your event here?
Let us know!
podcast language package introduction laravel mvc framework voicesoftheelephpant tool version release composer series community security opinion update symfony library interview
|All content copyright, 2014 PHPDeveloper.org :: firstname.lastname@example.org - Powered by the Solar PHP Framework|