News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Community News:
Packagist Latest Releases for 11.26.2014
November 26, 2014 @ 08:05:59

Recent releases from the Packagist:
0 comments voice your opinion now!



Community News:
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.

0 comments voice your opinion now!
solr search solarium library tutorial geospatial query airport demo

Link: http://www.sitepoint.com/geospatial-search-solr-solarium/

NetTuts.com:
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.

0 comments voice your opinion now!
laravel ioc container inversionofcontrol framework tutorial introduction detail

Link: http://code.tutsplus.com/tutorials/digging-in-to-laravels-ioc-container--cms-22167

Anthony Ferrara:
Alternatives To MVC
November 25, 2014 @ 11:52:15

Following up on his previous article talking about the MVC design pattern (and the idea of "MVC"), Anthony Ferrara has posted some alternatives to MVC for your consideration. These other options are mostly variants of the typical MVC structure and could be considered "siblings".

Last week, I wrote A Beginner's Guide To MVC For The Web. In it, I described some of the problems with both the MVC pattern and the conceptual "MVC" that frameworks use. But what I didn't do is describe better ways. I didn't describe any of the alternatives. So let's do that. Let's talk about some of the alternatives to MVC...

He starts by restating some of the major issues with the typical MVC implementation (three of them). From there, he covers each of the alternatives with a summary paragraph or three about each:

He talks about the similarities between them, mainly that they're all "triads" of functionality and that they all have the same basic purpose. He also suggests that they're all "pretending" to be application architectures.

If it's not clear where something fits in your application, that's a sign that your application architecture is flawed. Not that you need to introduce some magic in to get it to work. So let's admit that none of these are application architectures... And let's admit that there is a problem we need to solve.
0 comments voice your opinion now!
alternative mvc modelviewcontroller designpattern list architecture

Link: http://blog.ircmaxell.com/2014/11/alternatives-to-mvc.html

Rob Allen:
Using Phing to SSH into a Vagrant box
November 25, 2014 @ 10:22:55

In a quick new post to his site Rob Allen shows you how to have Phing SSH into a Vagrant box as a part of the VM creation process. In his case, he uses it to run database migrations.

Now that I've started using migrations, I've discovered a minor irritant. I run this project on a Vagrant VM and have discovered that I keep forgetting to ssh into the vagrant box before running the migrations script. The obvious solution is to automate this and I decided to use Phing to do so.

He walks through the installation of the libssh2 software (if you don't already have it) and the ssh2 PHP extensionSshTask to make the connection as the "vagrant" user and execute the given PHP command.

0 comments voice your opinion now!
vagrant ssh phing migrations automate tutorial vm virtualmachine

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/

VG Tech Blog:
Using Local Packages as Composer Dependencies
November 25, 2014 @ 09:16:45

On the VG Tech blog this latest post shows you how to use local packages as dependencies in your Composer-enabled applications.

Composer changed pretty much everything when it comes to including dependencies in PHP projects. No more SVN externals or copying large library folders into your project. This is really great, but there's one thing I've been struggling to find a smooth process for; developing dependencies for your project. When implementing your project, the need for some module, library, service provider or something else will arise, and sometimes you'll have to implement it yourself. So, how to do that?

He starts with a list of three suggestions (including actually having the code in the project or mirroring the package) but suggests the last of the three: using a repository with a relative file system setup. He uses the "repositories" configuration option in the Composer config to define a "vcs" type and gives it a path to the package contents. He ends the post with the resulting output of the Composer install command, showing the package pulled in and being able to commit to it just like any other repo.

0 comments voice your opinion now!
local package composer dependencies tutorial repository

Link: http://tech.vg.no/2014/11/25/using-local-packages-as-composer-dependencies/

Community News:
Packagist Latest Releases for 11.25.2014
November 25, 2014 @ 08:07:27

Recent releases from the Packagist:
0 comments voice your opinion now!



Community News:
Latest PECL Releases for 11.25.2014
November 25, 2014 @ 07:05:12

Latest PECL Releases:
  • termbox 0.1.2 fix termbox_peek_event return value

  • strict 0.3.0 fix issue in 5 series

  • mongo 1.6.0RC2 ** Bug * [PHP-1266] - phpinfo() lists a default authentication mechanism (which may not be the default) * [PHP-1267] - Windows build failure * [PHP-1269] - Validate encoding and decoding of MongoBinData::UUID_RFC4122 * [PHP-1270] - MongoDate->toDateTime is only supported for PHP 5.3.4 and later.

  • ip2location 6.0.4 * new release

  • strict 0.2.0 initial release

  • ip2location 6.0.2 * new release

  • ip2location 6.0.3 * new release

0 comments voice your opinion now!



php[architect]:
November 2014 Issue Released - Environments
November 24, 2014 @ 13:22:49

php[architect] magazine has released their latest issue today - the November 2014 edition: "Environments".

In this month's issue, we take a look at the environments that PHP code may travel through.

Articles in this month's issue include:

  • "PHP Engine Explained: an Introduction to the Zend Virtual Machine" (Julien Pauli)
  • "In the Shoes of a Hacker. Creating a Cryptovirus for PHP Apps" (Raul Fraile)
  • "Education Station: PHP on Firefox OS" (Matthew Setter)
  • "Introduction to Building a Programming Language" (Jacob Mather)

There's also all of the columns you know and enjoy covering Laravel Tips, the latest in the PHP community and a retrospective of the php[world] conference. You can pick up either just this issue or a full subscription from the php[architect] website.

0 comments voice your opinion now!
phparchitect magazine nov2014 issue release environments

Link: http://www.phparch.com/magazine/2014-2/november/


Community Events





Don't see your event here?
Let us know!


version voicesoftheelephpant interview security community library language symfony framework tool install package composer opinion laravel introduction series podcast release update

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework