PHP Community

Community News: Packagist Latest Releases for 05.10.2013

PHPDeveloper.org - Fri, 10/05/2013 - 15:06
Recent releases from the Packagist:

Making better object oriented design decisions

Planet-PHP - Fri, 10/05/2013 - 13:00
Last week I finished up the first section of The Object Oriented PHP Masterclass. The class was great, and I learned about as much from my students as they learned from me. One of the most common questions I got from my students was “how do I make decisions about how to design my object [...]
Catégories: Open Source, PHP Community

Aura: New Site, New Logo, New Releases

Planet-PHP - Fri, 10/05/2013 - 03:10
Last week we updated the project site layout with a variation on Bootstrap called Spacelab, and incorporated our new logo. Along with that, over the past few weeks, we have been quietly releasing updated versions of all our library packages. … Continue reading
Catégories: Open Source, PHP Community

Web & PHP Magazine: May 2013 Issue - "Time Travel"

PHPDeveloper.org - Thu, 09/05/2013 - 20:23

The Web & PHP Magazine has officially released their latest issue - the May 2013 edition, "Time Travel".

You may already be familiar with Git, but did you know that it can rewrite time itself? GitHubber Ben Straub explains all in this month's issue, which also features tutorials on extracting XML data from RSS, using Composer to manage project dependencies and using the PHP Content Repository. If you've ever thought about starting a PHP user group, Atlanta PHP User Group co-organiser Kevin Roberts shares his secrets - plus, there's our regular columns on agile, big data and testing.

Articles included in this latest issue include:

  • "Change the Past" (Ben Straub)
  • "Why do User Groups?" (Kevin Roberts)
  • "Sprint Retrospective Primer" (Steffan Surdek)
  • "Urban Legends and Error Handling" (Stefan Priebsch)
  • "Managing your project's dependencies with Composer" (Jefersson Nathan de O. Chaves)

As always, this issue is available free of charge and can be downloaded directly from their site.

Link: http://webandphp.com/May2013

PHPMaster.com: Maven and PHP

PHPDeveloper.org - Thu, 09/05/2013 - 19:42

PHPMaster.com has a new tutorial posted that introduces you to a build tool that's more common in the Java world but can easily support PHP projects, Apache's Maven.

Apache Maven is a build automation tool with the purpose of building, reporting, and creating documentation of projects. It builds projects using a Project Object Model (POM) and a set of plugins shared by all projects using Maven, thus providing a uniform build system. Once you familiarize yourself with how one Maven project builds, you automatically know how all Maven projects build. [...] Through this article you will gain familiarity with Maven for PHP, and how to install and use the PHP-Maven plugin from the command line and in Eclipse.

The tutorial walks you first through the basic install of Maven and get you started with an example "settings.xml" file helping to set up the PHP-Maven plugin. They help you create your first project using the Archetype plugin and its related "pom.xml" file. The project already has a defined structure (similar to what you might see in a Composer-loadable PHP repo on Github) for the source of your app and the tests. They show you how to hook in PHPUnit and phpDocumentor for testing/dcumentation builds and, finally, how to integrate it all into Eclipse to allow for easier, in-IDE interactions.

Link: http://phpmaster.com/maven-and-php

Script-Tutorials.com: Functional Programming - How to Write Functional Code in PHP

PHPDeveloper.org - Thu, 09/05/2013 - 18:04

On the Script-Tutorial.com site today there's a new post looking at functional programming in PHP - some of the concepts involved and example code showing how to make it work.

Functional programming can be defined in simple terms as a programming paradigm that do not change the state of a program instead it uses pure functions. A pure function is a function that has the ability to accept a value and return another value without changing the input supplied to it. It is characterized by its ability to support functions that are of high order. [...] A programming paradigm that is functional has the following attributes: do not alter the states which make parallelism easier, deals mostly with a function which is the smallest unit hence enhances readability of code, has deterministic functions that enable stability of a program.

He talks some about anonymous/lambda functions (closures) and their role in PHP's implementation of functional programming. He also talks some about partial functions, currying, higher order functions and recursion. He finishes off the article with a look at some of the advantages this method of development can bring as well as some of the disadvantages that come with things like recursion and the learning curve of the method.

Link: http://www.script-tutorials.com/functional-programming-php

PHP.net: PHP 5.5.0RC1 is available

PHPDeveloper.org - Thu, 09/05/2013 - 17:27

As is mentioned on PHP.net today, the first release candidate for the PHP 5.5.x series, PHP 5.5.0RC1, has been released for testing:

The PHP development team announces the availability of the first release candidate of PHP 5.5. This release fixes some bugs as well as some possible leaks from our last beta. This is a development preview - do not use it in production!

Some of the more major changes in this release include an update to the FPM SAPI for QUERY_STRING, a fix for a build issue with libgd, bugs in SNMP and a problem with stream_select on Windows x64 systems. You can find the full list of changes in the NEWS file. Please download and test (Windows binaries here) this latest release to help the development team find issues and move along with the PHP 5.5.x releases.

Link: http://php.net/index.php#id2013-05-09-2

PHPClasses.org: Lately in PHP, Episode 35 - Better Documentation for PHP internals

PHPDeveloper.org - Thu, 09/05/2013 - 16:12

On PHPClasses.org today they've posted the latest episode of their "Lately in PHP" podcast series - Episode #35, "Better Documentation for PHP internals".

With the inclusion of Zend Optimizer+ extension in PHP 5.5, the need for better documentation of PHP internals became more evident, so PHP contributors can write extensions that take the most of the core PHP features. That is one of the topics discussed by Manuel Lemos and Ernani Joppert in the episode 35 of the Lately In PHP podcast. They also talked about having more optimized PHP opcodes, some interesting PHP feature proposals that got rejected, as well the article about the top version control systems used by PHP developers.

You can listen to this episode in a few different ways - either through the in-page player, by downloading the mp3 or by watching the video of the recorded Google Hangout session.

Link: http://www.phpclasses.org/blog/post/207-Better-Documentation-for-PHP-internals--Lately-in-PHP-podcast-episode-35.html

Community News: Packagist Latest Releases for 05.09.2013

PHPDeveloper.org - Thu, 09/05/2013 - 15:06
Recent releases from the Packagist:

Better Documentation for PHP internals - Lately in PHP podcast episode 35

Planet-PHP - Thu, 09/05/2013 - 11:32
By Manuel Lemos
With the inclusion of Zend Optimizer+ extension in PHP 5.5, the need for better documentation of PHP internals became more evident, so PHP contributors can write extensions that take the most of the core PHP features.

That is one of the topics discussed by Manuel Lemos and Ernani Joppert in the episode 35 of the Lately In PHP podcast.

They also talked about having more optimized PHP opcodes, some interesting PHP feature proposals that got rejected, as well the article about the top version control systems used by PHP developers.

Listen to this podcast, or watch the hangout video, or read the transcript to learn more about this and other interesting PHP discussions.
Catégories: Open Source, PHP Community

Seriously: PHP 5.4.15 and PHP 5.3.25 really were released!

Planet-PHP - Thu, 09/05/2013 - 00:00
We weren't trying to pull an April Fool's Day joke in May. A temporary glitch caused the latest distributions of PHP to not properly propagate to the mirror servers. This has been fixed at the root level, and it's now being distributed to all of the mirrors. We'll take some bacon to go with the egg on our faces, please!If you continue to experience issues with downloading these versions after 21:00 UTC on 9 May, 2013, please drop us a line at php-mirrors@lists.php.net, telling us from which mirror you're trying to download, and we'll get it resolved.We apologize for the delays and confusion this may have caused, and thank you for using PHP.
Catégories: Open Source, PHP Community

PHP 5.5.0RC1 is available

Planet-PHP - Thu, 09/05/2013 - 00:00
The PHP development team announces the availability of the first release candidate of PHP 5.5. This release fixes some bugs as well as some possible leaks from our last beta. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! You can find an incomplete changelog of PHP 5.5.0RC1 here : Ignore QUERY_STRING when sent in SCRIPT_FILENAME in FPM SAPI.Fix build with system libgd >= 2.1 which is now the minimal version required (as build with previous version is broken). No change when bundled libgd is used. Fixed some bugs in SNMP Fixed bug where stream_select() fails with pipes returned by proc_open() on Windows x64). To get the full changelog, please, check the NEWS file attached to the archive. For source downloads of PHP 5.5.0RC1 please visit the download page, Windows binaries can be found on windows.php.net/qa/. Note that our release candidate cycle is only meant to bug fixes, no more features will be added to PHP 5.5 from now. Please help us to identify bugs in order to ensure that the release is solid and all things behave as expected. Please test this release candidate against your code base and report any problems that you encounter to the QA mailing list and/or the PHP bug tracker. We would like to thank all people helping us making PHP better by testing it and reporting problems, as well as all its contributors for their great work on this 5.5 version of PHP.
Catégories: Open Source, PHP Community

PHP 5.4.15 and PHP 5.3.25 released!

Planet-PHP - Thu, 09/05/2013 - 00:00
The PHP development team announces the immediate availability of PHP 5.4.15 and PHP 5.3.25. These releases fix about 10 bugs aswell as upgrading the bundled libmagic library. All users of PHP are encouraged to upgrade to PHP 5.4.15.For source downloads of PHP 5.4.15 and PHP 5.3.25 please visit our downloads page, Windows binaries can be found on windows.php.net/download/.The list of changes are recorded in the ChangeLog.
Catégories: Open Source, PHP Community

Christopher Martinez: Static code analysis tools for PHP

PHPDeveloper.org - Wed, 08/05/2013 - 19:38

Christopher Martinez has a recent post to his site that covers some of the static analysis tools available for PHP including the PHP Mess Detector, PHP CodeSniffer and the PHP Analyzer.

I believe in writing code that is easy to understand, easy to test, and easy to refactor. Yes, I realize that the statement above is pretty general and open to interpretation. Not everyone needs external tools to ensure quality in their code...but, I work on things from time to time that have absolutely no tests. [...] For whatever reason, this happens a lot more frequently in the PHP world. I'm guilty of not writing tests and checking how I write code, sometimes, too. Things are bright, though, for the PHP community - for quite some time now, we've had fantastic tools that assist us in writing better code.

He covers each of the tools, talks some about what they're good for and gives examples of their use, including output. He also talks some about the Pfff set of tools created by Facebook. He also talks some about how these tools fit into his daily work as a part of his pre-commit hooks in git.

Link: http://chrsm.org/2013/05/05/code-analysis-tools-for-php

Phil Sturgeon: Composer and PSR-0: Friends, Not Relatives

PHPDeveloper.org - Wed, 08/05/2013 - 18:15

Phil Sturgeon has a new post today that looks at the relationship between the PSR-0 standard (autoloading structure) and Composer - noting that they're friends, not relatives.

As a huge proponent of Composer, a happy user of PSR-0 and a voting member on the PHP-FIG I get into plenty of conversations about all of them and it worries me how much confusion there is in the community about these things not actually being related. [...] It seems that a lot of folks discover Composer and PSR-0 at the same time and seem to assume they are the same thing - especially since both Composer and PSR-0 have the idea of a "vendor" and a "package", but those two things are not related to each other either. These are a few points that I have wanted to clarify during some strange conversations over the last few weeks.

He goes on, trying to clear up some of the confusion around the idea of "vendors" and vendor names. He talks about naming schemes and how they may or may not be related to the vendor name on the package. He looks at the PSR-0 loading methods and how the structure of the library/repository effects that (noting that Composer can be made to accommodate something not PSR-0 by default). He suggests that PSR-0 needs to remain "implementation agnostic" and that Composer, at the same time, should remain "specification agnostic" .

Link: http://philsturgeon.co.uk/blog/2013/05/composer-and-psr0-friends-not-relatives

Miro Svrtan: First PHP Meetup by PHP Srbija in Belgrade

PHPDeveloper.org - Wed, 08/05/2013 - 17:41

Miro Svrtan has a recent post to his site talking about the first ever PHP meetup that happened in Belgrade in at the end of April organized by the PHP Srbija community.

With gathering of more then 250 developers this proved to be a much needed event there and congratulations to organizers for doing it. As a organizer of similar (but much smaller) PHP community in Zagreb I was in constant contact with organizers and was very happy when we were invited to join them on this occasion, especially when they approved my proposal to talk about Laravel4 there.

Even the local media picked up on the meeting and a larger venue had to be found at the last minute due to the overwhelming response. There were a few different topics mentioned (including BDD, a questionnaire, best practices in component libraries and web security) before getting to the main talk.

I would take this opportunity to thank whole PHP Srbija organization committee for inviting us & once again congratulate them on bringing such a large community together. Link: http://www.mirosvrtan.me/blog/2013/05/first-php-meetup-by-php-srbija-in-belgrade

Codeception.com: Specification or Testing: The Comparison of Behat and Codeception

PHPDeveloper.org - Wed, 08/05/2013 - 16:28

On the Codeception site today there's a new post that compares their tool, Behat and PHPUnit for testing your applications.

This is guest post by Ragazzo. He uses Behat as well as Codeception for making his project better. He was often asked to do a comparison between Codeception, Behat, and PhpUnit. In this post he explains the commons and different parts of this products.

The author talks some about the difference between functional/acceptance tests and how they fit in with behavior driven development. He includes some examples of Behat test formats (Gherkin) and how it can be used for both the functional and acceptance side of things. He also talks some about why he prefers Codeception over Behat(+Mink) for his testing. A sample Codeception test is included, showing a login form check.

Link: http://codeception.com/05-06-2013/specification-testing-coparison.html
Syndiquer le contenu