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 Marzec, 2015

Christopher Pitt: Co-operative PHP Multitasking

Christopher Pitt: Co-operative PHP Multitasking

Christopher Pitt has posted a new article on Medium.com about when an “array is like an adventure” when in the context of co-operative PHP multitasking. In it he shows how to make code work asynchronously with out the use of extensions, only generators.

Last week I got the opportunity to share recent work with my colleagues, at SilverStripe. I was going to present Async PHP today, but since I covered ReactPHP last week; I decided to talk about something slightly different. So here’s a post about cooperative multitasking.

He starts with some basic arrays and other things that act like them and can be iterated through (Traversable). He talks about implementing custom iterators to act the same way and the use of IteratorAggregate to “cheat” a bit when making them. The he gets into generators, showing how they can be used to iterate similarly. He shows how it’s possible to send data to a generator, throwing exceptions inside them and the use of “coroutines” to create asynchronous code. He builds up a queue system with this method and shows how they execute with some simple echo output. He also shows the use of RecoilPHP, another coroutine-based library, to replace the main kernel for a ReactPHP script. He also mentions IcicleIO as another option.

Link: https://medium.com/@assertchris/co-operative-php-multitasking-ce4ef52858a0
Source: http://www.phpdeveloper.org/news/22529

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

Christopher Pitt: Co-operative PHP Multitasking

Christopher Pitt: Co-operative PHP Multitasking

Christopher Pitt has posted a new article on Medium.com about when an “array is like an adventure” when in the context of co-operative PHP multitasking. In it he shows how to make code work asynchronously with out the use of extensions, only generators.

Last week I got the opportunity to share recent work with my colleagues, at SilverStripe. I was going to present Async PHP today, but since I covered ReactPHP last week; I decided to talk about something slightly different. So here’s a post about cooperative multitasking.

He starts with some basic arrays and other things that act like them and can be iterated through (Traversable). He talks about implementing custom iterators to act the same way and the use of IteratorAggregate to “cheat” a bit when making them. The he gets into generators, showing how they can be used to iterate similarly. He shows how it’s possible to send data to a generator, throwing exceptions inside them and the use of “coroutines” to create asynchronous code. He builds up a queue system with this method and shows how they execute with some simple echo output. He also shows the use of RecoilPHP, another coroutine-based library, to replace the main kernel for a ReactPHP script. He also mentions IcicleIO as another option.

Link: https://medium.com/@assertchris/co-operative-php-multitasking-ce4ef52858a0
Source: http://www.phpdeveloper.org/news/22529

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

SitePoint PHP Blog: Best PHP Framework for 2015 – SitePoint Survey Results

SitePoint PHP Blog: Best PHP Framework for 2015 – SitePoint Survey Results

In a new post to the SitePoint PHP blog editor Bruno Skvorc shares the results of the PHP framework survey the site posted a month back. In it they asked developers for their opinions on favorite frameworks (not necessarily the one they use, but their own personal opinion). For anyone that’s been keeping up with the current state of PHP frameworks, the results aren’t all that surprising though.

One month ago, we started the annual SitePoint framework popularity survey. Now that the month has expired, it’s time to look at the results and to distribute the prizes. The response was a whopping ~7800 entries, far more than any other survey we’ve held so far, and even after filtering out invalid entries we end up with a formidable number of valid participants.

According to the results the most popular framework, by far, was Laravel. Coming in second was Symfony2 and third the Nette framework. They did ask for different opinions for personal versus business choices but the results track the same between the two. He also splits out the data into the top results by country and by the age of the people who responded.

He finishes off the post with some of his own thoughts on why Laravel was the clear winner with only some of it having to do with the framework itself. He points out the related projects, “near perfect documentation” and other things (like Laravel’s own subreddit). He suggests that, even though open source and “free” tend to go together, spending money and a good amount of time on a project can help ensure it succeeds. He also offers some practical advice for those wanting to give their project a boost:

Spread the word, analyze solutions from other people, discuss them. Be open, be transparent. Have an official blog, get a StackOverflow tag, justify your decisions, get in touch with popular publications which can help promote your framework if you present it well enough.

Link: http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/
Source: http://www.phpdeveloper.org/news/22528

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

SitePoint PHP Blog: Best PHP Framework for 2015 – SitePoint Survey Results

SitePoint PHP Blog: Best PHP Framework for 2015 – SitePoint Survey Results

In a new post to the SitePoint PHP blog editor Bruno Skvorc shares the results of the PHP framework survey the site posted a month back. In it they asked developers for their opinions on favorite frameworks (not necessarily the one they use, but their own personal opinion). For anyone that’s been keeping up with the current state of PHP frameworks, the results aren’t all that surprising though.

One month ago, we started the annual SitePoint framework popularity survey. Now that the month has expired, it’s time to look at the results and to distribute the prizes. The response was a whopping ~7800 entries, far more than any other survey we’ve held so far, and even after filtering out invalid entries we end up with a formidable number of valid participants.

According to the results the most popular framework, by far, was Laravel. Coming in second was Symfony2 and third the Nette framework. They did ask for different opinions for personal versus business choices but the results track the same between the two. He also splits out the data into the top results by country and by the age of the people who responded.

He finishes off the post with some of his own thoughts on why Laravel was the clear winner with only some of it having to do with the framework itself. He points out the related projects, “near perfect documentation” and other things (like Laravel’s own subreddit). He suggests that, even though open source and “free” tend to go together, spending money and a good amount of time on a project can help ensure it succeeds. He also offers some practical advice for those wanting to give their project a boost:

Spread the word, analyze solutions from other people, discuss them. Be open, be transparent. Have an official blog, get a StackOverflow tag, justify your decisions, get in touch with popular publications which can help promote your framework if you present it well enough.

Link: http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/
Source: http://www.phpdeveloper.org/news/22528

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

Rob Allen: Building and testing the upcoming PHP7

Rob Allen: Building and testing the upcoming PHP7

Rob Allen has posted a guide to building and testing PHP 7, the next upcoming major build of the PHP language (released sometime later this year).

The GoPHP7-ext project aims to ensure that all the known PHP extensions out there work with the upcoming PHP 7. This is non-trivial as some significant changes have occurred in the core PHP engine (related to performance) that mean that extensions need to be updated. In order to help out (and prepare my own PHP code for PHP 7!), I needed the latest version of PHP7 working in a vagrant VM. Fortunately Rasmus has created a such a VM called php7dev, so let’s start there.

He walks you through the process of grabbing the latest version of the virtual machine and set it up as a Vagrant VM instance. He talks about the different PHP versions contained in the VM and how to update PHP 7 to the latest pre-release version. Finally he talks about building an extension on the VM (he uses the apfd extension) and how to configure the VM to be able to test your own code too.

Link: http://akrabat.com/building-and-testing-php7/
Source: http://www.phpdeveloper.org/news/22527

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

Rob Allen: Building and testing the upcoming PHP7

Rob Allen: Building and testing the upcoming PHP7

Rob Allen has posted a guide to building and testing PHP 7, the next upcoming major build of the PHP language (released sometime later this year).

The GoPHP7-ext project aims to ensure that all the known PHP extensions out there work with the upcoming PHP 7. This is non-trivial as some significant changes have occurred in the core PHP engine (related to performance) that mean that extensions need to be updated. In order to help out (and prepare my own PHP code for PHP 7!), I needed the latest version of PHP7 working in a vagrant VM. Fortunately Rasmus has created a such a VM called php7dev, so let’s start there.

He walks you through the process of grabbing the latest version of the virtual machine and set it up as a Vagrant VM instance. He talks about the different PHP versions contained in the VM and how to update PHP 7 to the latest pre-release version. Finally he talks about building an extension on the VM (he uses the apfd extension) and how to configure the VM to be able to test your own code too.

Link: http://akrabat.com/building-and-testing-php7/
Source: http://www.phpdeveloper.org/news/22527

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

That Podcast: Episode 16: The one with HTTP/2

That Podcast: Episode 16: The one with HTTP/2

That Podcast has posted their latest episode today, Episode #16 – The One with HTTP/2.

Beau and Dave catch up on their latest happenings and talk about HTTP/2, what makes it different and how we understand it could change the way we do things.

Other topics mentioned in this new episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the mp3. Be sure you subscribe to their feed if you enjoy the show too!

Link: http://thatpodcast.io/episodes/episode-16-the-one-with-http-2/
Source: http://www.phpdeveloper.org/news/22526

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

That Podcast: Episode 16: The one with HTTP/2

That Podcast: Episode 16: The one with HTTP/2

That Podcast has posted their latest episode today, Episode #16 – The One with HTTP/2.

Beau and Dave catch up on their latest happenings and talk about HTTP/2, what makes it different and how we understand it could change the way we do things.

Other topics mentioned in this new episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the mp3. Be sure you subscribe to their feed if you enjoy the show too!

Link: http://thatpodcast.io/episodes/episode-16-the-one-with-http-2/
Source: http://www.phpdeveloper.org/news/22526

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

That Podcast: Episode 16: The one with HTTP/2

That Podcast: Episode 16: The one with HTTP/2

That Podcast has posted their latest episode today, Episode #16 – The One with HTTP/2.

Beau and Dave catch up on their latest happenings and talk about HTTP/2, what makes it different and how we understand it could change the way we do things.

Other topics mentioned in this new episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the mp3. Be sure you subscribe to their feed if you enjoy the show too!

Link: http://thatpodcast.io/episodes/episode-16-the-one-with-http-2/
Source: http://www.phpdeveloper.org/news/22526

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

Community News: Latest PEAR Releases for 03.30.2015

Community News: Latest PEAR Releases for 03.30.2015Latest PEAR Releases:

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

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