2014年4月30日星期三

Community News: Recent posts from PHP Quickfix

Recent posts from the PHP Quickfix site:

Community News: Packagist Latest Releases for 04.30.2014

Recent releases from the Packagist:

Paul Jones: Some Rules For Good Naming


Paul Jones has a new post to his site today talking about the importance of naming when it comes to the use of different patterns in development. He also makes some recommendations to help clear up some of the confusion around different names for the same things.



[Thoughts in a] Grumpy Programmer mailing-list essay got me thinking. [...] I completely agree with the emphasis on using a common vocabulary. One issue here is that naming things properly is very, very hard. It is one of the only two hard problems in programming. Are there any rules (even rules-of-thumb) that can we use to make it easier to pick good names for the classes and concepts in our projects?


He reminds readers that code is no place for a "novel context", that is that it's not meant to be instructions for humans, but instructions for computers. He points out that patterns are more about behavior than the name you give them and that picking a name that's "close enough" isn't a good idea. He also recommends that you avoid picking a name for a special context the code might be involved in.


Link: http://paul-m-jones.com/archives/5952

Community News: FrOSCon 2014 Call for Papers Announced


The FrOSCon conference has officially announced the call for papers for their upcoming event. FrOSCon is the "Free and Open Source software conference" held near Bonn, Germany with both workshops and normal length sessions.



As its key feature, volunteer speakers will hold a comprehensive range of talks and workshops. Additionally the event offers space and facilities to Free Software developers and projects to organize their own meetings or sub conferences. It is topped off with a fair of booths from FLOSS projects and companies. We are looking for contributions on current trends and development in all areas of Free and Open Source Software, e.g.: Operating systems, Software development, Administration, IT security, Legal aspects, Desktop and Education.


You can submit as many ideas as you'd like over on their call for papers form but be sure to get them in by the deadline - May 23rd, 2014!


Link: http://www.froscon.de/en/cfp/

Davey Shafik: Thoughts on PHPBridge


At the recent Lone Star PHP conference in Dallas, Texas PHP Women members Davey Shafik, Elizabeth Smith, Michelle Sanver and Matt Frost presented the inaugural version of their PHPBridge introductory curriculum. Davey has posted about the experience as an instructor at the event.



Last weekend at the fantastic Lone Star PHP 2014, I (and 3 other awesome people) presented the inaugural PHPBridge tutorial. You can read more about how that went on the PHPWomen blog. However, I wanted to take a moment to jot down some more personal thoughts on PHPBridge. Why I pushed for it, why I think it's important, and my ultimate goals for it.


He looks at some of the formation of the training, based on the popular RailsBridge sessions, and some of the work that was done to translate it over to the world of PHP. He talks about some of the foundational ideas behind the training and some of the steps the attendees follow (and discover) along the way. He notes that he more than considers this initial version a success but mentions a few things that could be improved for later presentations.


Link: http://daveyshafik.com/archives/68888-thoughts-on-phpbridge.html

SitePoint PHP Blog: HHVM and Hack on Heroku


In a recent announcement Heroku, a popular platform as a service provider, announced that they now fully support native HHVM support to their platform offerings. In this new post to the SitePoint PHP blog Bruno Skvorc shares some of his own thoughts on the announcement.



In a move that surprised most but displeased none, Heroku, the Cloud Application Platform, has added native HHVM support to their cloud. PHP has long been a viable solution for high traffic production apps, and has had one of the best package managers for a while, not to mention the fact that it's evolved significantly since the days of "simple hacks for small projects". The PHP "development model" has been anything but "hackish" in the professional circles for a while now. The unfortunate ignorance of Adam Gross aside, this really is some big news.


Heroku apparently saw an opportunity to engage a whole new area with the integration of HHVM (and Hack) support on their PHP instance offerings. They even offer a method for switching between the normal PHP instances and an HHVM one to make the transition as easy as possible.


Link: http://www.sitepoint.com/hhvm-hack-heroku/

Community News: ZendCon 2014 Announces Call for Papers


The ZendCon conference has officially announced the opening of their Call for Papers for this year's event:



We're pleased to announce the 10th annual ZendCon which will be held October 27-30th, 2014 in Santa Clara, CA. ZendCon 2014 has a long history of being one of the "must attend" PHP conferences as community members from around the world have come together to learn and share information about the latest trends and technologies in professional PHP development. [...] We would welcome submission of any talk included in the wide variety of topics related to PHP and tools commonly used by PHP developers.


The topics they're focusing on this year include PHP best practices, continuous delivery and application architecture. The event is happening October 27th through the 30th in Santa Clara, California. The deadline for the Call for Papers is June 16th, 2014 so submit those ideas early and often. You can find more information about the conference on their main site.


Link: http://cfp.zendcon.com/

2014年4月29日星期二

Community News: Latest PECL Releases for 04.29.2014

Latest PECL Releases:
  • BLENC 1.1.4b
    Upgraded to works with latest PHP version


  • pecl_http 2.0.6
    + Added "uploaded" progress state
    * Fixed bug #67089 (Segmentaion fault with ZTS)
    * Fixed compatibility with PHP-5.6+
    * Fixed re-use of request messages which content length remained untouched when the body was reset


  • pcsc 0.3
    Fix w32 build, fix compiler warnings, use zval resource instead of LONG for handles


Community News: Packagist Latest Releases for 04.29.2014

Recent releases from the Packagist:

Wojciech Sznapka: Software developers care too much about tools


In his latest post Wojciech Sznapka suggests that software developers care too much about tools and not enough about software quality and structure.



Lately I see perilous situation in software development area. There are plenty of good devs so much bounded to tools. By tools, I mean mostly frameworks. [...] First of all, we all need to admit, that quality of modern MVC framework raised a lot, comparing with state of things few years ago. [...] On the other hand, there's huge temptation to write own frameworks, ignoring the great work of community.


He talks about more of the benefits of using a framework but instead of being dependent on it for your application, make it just another tool. He recommends quality, decoupled and well-designed code separate from the framework. Additionally, he suggests using things like domain driven design to encourage reusability and accurately modeled business needs in the code.


Link: http://blog.sznapka.pl/software-developers-care-too-much-about-tools

SitePoint PHP Blog: Memberships with Laravel Cashier


The SitePoint PHP blog has posted a tutorial for those using the Laravel Cashier showing you how to work with memberships for the content or functionality of your application.



In this tutorial we're going to see how easy it is to create a basic paid membership website using the Laravel Cashier package. You can see a demo of the app here and download the source code here.


The tutorial walks you through setting up a functional environment and getting the new Laravel instance up and running. Migrations to run are included in the repository checkout too. The tutorial then gets into the setup of Stripe for payments and creation of the various pages you'll need. An "upgrade" option is also included.


Link: http://www.sitepoint.com/memberships-laravel-cashier/

Rami Alnawas: How to unit test code with Phalcon MVC Models


Rami Alnawas has posted an interesting tutorial for the Phalcon users out there showing one way you can unit test your models. It's based on his own experience with the framework in a current project.



My first contribution to the PHP community in general, and Phalcon folks in particular, was the introduction of MVC Functional Testing with PHPUnit, this meant that Applications developed using Phalcon Framework could be unit tested by requesting a url then asserting that the response is handled by a specific action within the controller. [...] To date, my latest addition is an example of how to unit test code that utilises Phalcon models, mainly the various static find methods. The code is available on github and the coverage report is coveralls.io.


He shows it at work, creating a simple "Popup" model and a facade to help with making instances for testing. He also includes the code to test this facade, checking the results of methods like "fetchall", "select" and "execute".


Link: http://www.rami.me.uk/how-to-unit-test-code-with-phalcon-mvc-models

Master Zend Framework: Using Sessions In Zend Framework 2 - Part 1


On his Master Zend Framework site today Matthew Setter has posted the first part of a series looking at working with sessions in Zend Framework 2 applications.



To help work around [the stateless nature of the language], PHP introduced the concept of sessions, which allows for storing information across requests. However, like most things, as application's have become more complex, the ability to interact with sessions in a way that matches the needs of the application has continued to grow. Gladly, in Zend Framework 2, a set of classes is available, which helps reduce the complexity of managing session information, whether that's interaction, configuration or backend storage, without placing too much distance between you and the underlying PHP implementation, or adding too much complexity in the process.


Using the ZF2Skeleton as a base, he shows you how to add session support to the overall project in a few simple steps:



  • Update Module.php to initialize the session
  • Create a new container & store some data
  • Retrieve it later


There's not too much code change involved, but the snippets to add/update are included. In the next part of the series, he'll look at validation, preventing hijacking and using different backend storage methods.


Link: http://www.masterzendframework.com/sessions/using-sessions-in-zend-framework-2-part-1

2014年4月28日星期一

Community News: Latest PEAR Releases for 04.28.2014

Latest PEAR Releases:

Community News: Packagist Latest Releases for 04.28.2014

Recent releases from the Packagist:

7PHP.com: Josh Lockhart - Find Good Online Resources And Communities & Use Them To Your Advantage


7PHP.com has posted their latest community interview, this time with Josh Lockhart, an author behind the PHP The Right Way project and the Slim microframework. They talk some about his history with PHP, some thoughts on the current state of the language and resources/tools he recommends.



Someone finally took the responsibility to make things go in The Right Direction. And this man, this brave man, this 'super-hero' is here to make a change happen - he is named Mr Josh Lockhart. He is The Captain America of The PHP Community! Josh came forward with a convincing righful movement (if I can allow myself to tag it as such) to help PHP-ers get a sense of good direction when it comes to 'dealing with/and taming' PHP as a tool to make good software. This initiative is named as PHP The Right Way!


Josh answers other questions about his preference in environments, what he sees as the good and bad of PHP and his overall feel of the PHP community and where he feels e fits.


Link: http://7php.com/php-interview-josh-lockhart/

SitePoint PHP Blog: Politics Often Hold the Community Back


On the SitePoint PHP blog Matthew Setter has posted the latest in the "Can Great Apps Be Written in PHP?" interview series. This time he talks with two other developers - Gary Hockin and Bruno Skvorc, the blog's own editor.



Matthew asks Gary questions about his history with PHP and some of his own "highlights" when it comes to features of the language. They also talk about other languages, frameworks and is how preferred toolset.



In talking with Bruno, he asks similar questions but Bruno's answers deal more with the community around PHP than specific features. They also talk some about deployment testing and his own preferences on how his team works.


Link: http://www.sitepoint.com/interview-gary-hocken-matthew-setter/

2014年4月27日星期日

Community News: Packagist Latest Releases for 04.27.2014

Recent releases from the Packagist:

2014年4月26日星期六

Community News: Packagist Latest Releases for 04.26.2014

Recent releases from the Packagist: