2014年5月31日星期六

Community News: Packagist Latest Releases for 05.31.2014

Recent releases from the Packagist:

2014年5月30日星期五

Site News: Popular Posts for the Week of 05.30.2014

Popular posts from PHPDeveloper.org for the past week:

Community News: Packagist Latest Releases for 05.30.2014

Recent releases from the Packagist:

PHP.net: PHP Versions 5.5.13 & 5.4.29 Released


The PHP.net development group has made two release announcements today about the latest versions in both the PHP 5.4.x and 5.5.x series: PHP 5.4.29 as well as PHP 5.5.13.



This release [of PHP 5.5.13] fixes several bugs in PHP 5.5.12, and addresses two CVEs in Fileinfo (CVE-2014-0238 and CVE-2014-0237). [Additionally, in PHP 5.4.29] 16 bugs were fixed in this release, including two security issues in fileinfo extension. All PHP 5.4 users are encouraged to upgrade to this version. [...] All PHP users are encouraged to upgrade to these new versions.


As always, you can get these latest releases from either the main downloads page or windows.php.net for the Windows users out there. For the complete list of changes in either release, see the full Changelog.


Link: http://www.php.net/archive/2014.php#id2014-05-29-5

/Dev/Hell Podcast: Episode 45: Single Quotes for Web Scale


The latest episode of the /Dev/Hell podcast has officially been released, Episode #45: Single Quotes for Web Scale, as hosted by PHP community members Ed Finkler and Chris Hartjes (and joined by guest Steve Corona).



This week is all about PERSONAL BRANDING and WEB SCALE with special guest Steve Corona. We talk about Steve's book Scaling PHP. We also reminisce about the old days of Twitter API dev, until Steve humiliates Ed by not knowing what Spaz was.


Topics mentioned in this episode include the Scaling PHP book, Twitpic, double quotes versus single quotes in PHP and horizontal versus vertical scaling. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly.


Link: http://devhell.info/post/2014-05-28/single-quotes-for-web-scale/

HHVM Blog: HHVM 3.1.0


On the HHVM blog today they've announce the release of the latest version of the popular project, version 3.1.0. This version fixes a few issues (including a segfault) and crossed into their semi-annual "lockdown" to work directly on the project.



If you remember last time we focused on framework unit tests, performance, and growing beards. This time, our frameworks were in good shape thanks to Fred and our Open Academy students, but our github story was not as pretty. At the start of lockdown we had 60 pull requests and nearly 450 issues. So our focus this time was github health and of course as always, perf.


In the end they closed out 251GitHub issues and made things 16% more efficient in the process. They list out some of the updates in this release including:




You can grab this latest release from the pre-build packages page on the GitHub project account.


Link: http://hhvm.com/blog/5195/hhvm-3-1-0

SitePoint PHP Blog: Autogenerate CRUD Apps with Phreeze


On the SitePoint PHP blog today Taylor Ren has shared a tutorial about using Phreeze to easily create CRUD applications for a MySQL backend. Phreeze is made up of three parts: an MVC handler, an ORM for database interaction and the "Phreeze Builder" to generate the application code.



Back in the times of Symfony 1.x, the framework had a powerful backend module to help the developers and site administrators create a good enough app and provide necessary CRUD features to manage the database (and save us from using PHPMyAdmin). [...] In this article, we will take a look at Phreeze, a simple and easy to use PHP framework that can help us generate a MySQL CRUD backend app. I will use my book collection test site as the underlying database. Please refer to my Data Fixtures in Symfony2 article for more details on the database structure.


He walks you through the installation of Phreeze (downloaded from GitHub) and what the first page should look like when pulled up in a browser. The wizard helps with the database setup and lets you pick the tables to generate models for as well as a few other application options. He shows how to integrate this generated code with a simple Symfony2-based application and easily allow for working with the database contents. He modifies the Symfony2 code to handle some additional options to pass into the generated code and talks some about the API interface Phreeze generates automatically.


Link: http://www.sitepoint.com/autogenerate-crud-apps-phreeze/

2014年5月29日星期四

Site News: Blast from the Past - One Year Ago in PHP

Here's what was popular in the PHP community one year ago today:

Community News: Packagist Latest Releases for 05.29.2014

Recent releases from the Packagist:

Joshua Thijssen: Throttle your API calls: RateLimitBundle


In his latest post Joshua Thijssen introduces a new tool he's created to help Symfony2-based APIs handle rate limiting relatively easily: the RateLimit Bundle. The project was recently created as a part of some work he's been doing on the TechAnalyze service.




Too many times third party applications will be polling your API when they don't really need too, and maybe you can lighten the load a bit with some heavy-duty caching, but in essence you want that every API call made matters. [...] Most of our calls are pretty lightweight, but some of them aren't, nor are they easily cacheable. This is why we are limiting the number of calls each client can make to the API. But it wouldn't be fair to just limit the number of calls in general.



[...] Our platform is written in PHP, based on the Symfony2 framework. There are many different bundles available for symfony2, all adding new functionality, but somehow we couldn't find a (good) bundle for throttling our API. But after a search, we found a gist by Ruud Kamphuis, which pretty much does what we need. So we decided to set up a similar bundle, and added some flexibility in its usage.




The RateLimitBundle allows you to add a "@ratelimit" annotation directly to the controller or action in the application and adds remaining allowed calls to the response headers. The mentions some drawbacks to the bundle like a dependency on redis and how it figures out "distinct calls" to the API. He also breaks it down into the functional pieces and talks about how each one works and where it fits into the overall functionality.


Link: https://www.adayinthelifeof.nl/2014/05/28/throttle-your-api-calls-ratelimitbundle

Three Devs & A Maybe Podcast: PHP Internals, pthreads and PHPDBG with Joe Watkins


In the latest episode of the Three Devs and a Maybe podcast, Episode #26, Michael Budd, Fraser Hart, Lewis Cains and Edd Mann share some opinions about the PHP internals mailing list, pthreads and the PHPDBG project (with guest and project developer >Joe Watkins).



This week we are very lucky to have Joe Watkins from pthreads and PHPDBG fame on the podcast. Starting off discussion with the 'PHP Next Generation' drama, we move on to wrap-up our thoughts on the 'Is TDD dead' set of Google Hangouts. The topic then shifts onto our guest and how he got into programming and PHP - with the creation of pthreads and PHPDBG projects discussed. Finally, we finish off the podcast with the regular quiz.


Other topics mentioned in this latest episode include the work being done on PHPNG, routing with regular expressions and the neural networks video lecture. You can listen to this latest episode either through the in-page player or by downloading the episode directly.


Link: http://threedevsandamaybe.com/posts/php-internals-pthreads-and-phpdbg-with-joe-watkins/

PHP Town Hall: Episode 25: Girls Aren't Any Different


The PHP Town Hall podcast, with hosts Ben Edmunds and Phil Sturgeon, has posted their latest episode - Episode #25: "Girls Aren't Any Different".



Talking about feminism in tech is always difficult. This episode was quite a heated discussion with Kayla Daniels and Jessica D'Amico discussing their opinions about women-orientated groups such as PHPWomen and Girls Who Code. Kayla wrote an excellent article titled Not a shiny unicorn, in which she made several points. [...] Essentially saying that specialist groups that try to help nurture female involvement can be seen - by some - to be a little patronising, like girls need special help, etc. Also whenever people freakout in the office because there is "a girl" there, things get weird.


While they admit that the session could have been more of a "representative conversation or interesting listening", plenty of points about the topic of feminism in technology-related work are still discussed with some good perspectives on either side. You can listen to this latest episode either through the in-page player or by downloading the mp3 (no video for this one, unfortunately).


Link: http://phptownhall.com/blog/2014/05/28/episode-25-girls-arent-any-different/

SitePoint PHP Blog: IronMQ and Laravel: Implementation


The SitePoint PHP blog has posted the latest tutorial in their "IronMQ and Laravel" series (part two of two) showing you the actual implementation of the queue handling, building on the configuration and structure from the previous post.



Welcome back to the IronMQ and Laravel series - this is the second and final part in which we finalize our background-job enabled web app. [...] We will make a jobs table which has job_id, and the status of the job. When you put a job on the queue, the job status will be queued and when we receive the job, we set the status to running. Accordingly, after finishing it we will mark it finished.


They start out by creating the "jobs" table in MySQL (via a migration) and follow it with the matching model. A basic template is also included for viewing the current job information and populating its data. Finally, a "run" method is created in the controller to actually execute a job. Using this, they set up the image resize functionality, creating the "photo" table, model and template to output the results of the image manipulation. They've also included a simple version of the editing of the image, allowing the user to resize based on the inputted height and width.


Link: http://www.sitepoint.com/ironmq-laravel-implementation/

2014年5月28日星期三

Community News: Recent posts from PHP Quickfix

Recent posts from the PHP Quickfix site:

Community News: Packagist Latest Releases for 05.28.2014

Recent releases from the Packagist: