Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Listopad, 2014

Community News: Packagist Latest Releases for 11.26.2014

Community News: Packagist Latest Releases for 11.26.2014Recent releases from the Packagist:

Source: http://www.phpdeveloper.org/news/22019

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Recent posts from PHP Quickfix

Community News: Recent posts from PHP QuickfixRecent posts from the PHP Quickfix site:

Source: http://www.phpdeveloper.org/news/22020

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

SitePoint PHP Blog: Geospatial Search with SOLR and Solarium

SitePoint PHP Blog: Geospatial Search with SOLR and Solarium

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.

Link: http://www.sitepoint.com/geospatial-search-solr-solarium/
Source: http://www.phpdeveloper.org/news/22018

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

NetTuts.com: Digging in to Laravel’s IoC Container

NetTuts.com: Digging in to Laravel’s IoC Container

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.

Link: http://code.tutsplus.com/tutorials/digging-in-to-laravels-ioc-container–cms-22167
Source: http://www.phpdeveloper.org/news/22017

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Anthony Ferrara: Alternatives To MVC

Anthony Ferrara: Alternatives To MVC

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.

Link: http://blog.ircmaxell.com/2014/11/alternatives-to-mvc.html
Source: http://www.phpdeveloper.org/news/22016

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Using Phing to SSH into a Vagrant box

Rob Allen: Using Phing to SSH into a Vagrant box

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 extension</a. With those in place, he shows how to use the SshTask to make the connection as the “vagrant” user and execute the given PHP command.

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/
Source: http://www.phpdeveloper.org/news/22015

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Using Phing to SSH into a Vagrant box

Rob Allen: Using Phing to SSH into a Vagrant box

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 extension</a. With those in place, he shows how to use the SshTask to make the connection as the “vagrant” user and execute the given PHP command.

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/
Source: http://www.phpdeveloper.org/news/22015

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Using Phing to SSH into a Vagrant box

Rob Allen: Using Phing to SSH into a Vagrant box

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 extension</a. With those in place, he shows how to use the SshTask to make the connection as the “vagrant” user and execute the given PHP command.

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/
Source: http://www.phpdeveloper.org/news/22015

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Using Phing to SSH into a Vagrant box

Rob Allen: Using Phing to SSH into a Vagrant box

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 extension</a. With those in place, he shows how to use the SshTask to make the connection as the “vagrant” user and execute the given PHP command.

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/
Source: http://www.phpdeveloper.org/news/22015

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Using Phing to SSH into a Vagrant box

Rob Allen: Using Phing to SSH into a Vagrant box

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 extension</a. With those in place, he shows how to use the SshTask to make the connection as the “vagrant” user and execute the given PHP command.

Link: http://akrabat.com/php/using-phing-to-ssh-into-a-vagrant-box/
Source: http://www.phpdeveloper.org/news/22015

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>