2013年7月1日星期一

7PHP.com: Know The PHP Hampshire User Group - Find An Independent Venue Rather Than Conference Venue


On 7PHP.com there's a new interview posted with the organizers of the PHP Hampshire user group about the group, organizers and challenges they face.


James Titcumb, one of five organizers of the group, answers questions about:



  • What their user group is about and what their goals are
  • The size of the group and the key people involved
  • How they find sponsors for their event
  • How it's different from other user groups
  • Some of the lessons they've learned so far


You can read the full interview here and, if you're in the Portsmouth area, be sure to check out the group!


Link: http://7php.com/php-usergroup-phphampshire

Community News: Packagist Latest Releases for 07.01.2013

Recent releases from the Packagist:

MaltBlue.com: ZendDbSql - Creating Joins and Unions with Ease


On the MaltBlue.com blog Matthew Setter has a new post about the ZendDbSql component of Zend Framework 2, specifically related to making easy joins and unions. This is the second part of his series on this component.



In the first part of this series on ZendDbSqlSelect, we jumped the gun a bit and went straight in to looking at building Where clauses. We looked at a number of the predicates that are available to us, such as In, Between and EqualTo and saw just how easy ZendDbSqlSelect makes both building and maintaining queries. In this, the second part, we're backtracking a bit and looking at Joins and a slightly more esoteric feature of SQL - UNIONs. By the end of today's tutorial, you'll be building some pretty good queries that should satisfy most of your daily requirements.


He starts with a look at joins, showing in several code examples the various kinds - inner, outer, left and right (as well as self joins). He then moves on to unions, intersects and excerpts with examples of each.


Link: http://www.maltblue.com/tutorial/zend-db-sql-creating-joins-and-unions-with-ease

PHPMaster.com: Array Operators in PHP: Interesting but Less Spoken


On PHPMaster.com there's a new tutorial about array operators in PHP, more so how the usual operators interact with arrays.



Operators in PHP can be organized into seven different categories: arithmetic, assignment, bitwise, comparison, error control, execution, incrementing/decrementing, logical, string, array, and type operators. This article details working with array operators, but also covers how some of the other operators work when used with arrays.


They talk about the operators for:



  • array union (plus)
  • equality (double equals)
  • identity (triple equals)


They also talk briefly about some of the other PHP operators with arrays (like subtraction, multiplication and division) and some of the conversions that PHP does when they're used.


Link: http://phpmaster.com/array-operators-in-php-interesting-but-less-spoken

Juan Treminio: Make $ vagrant up yours


Juan Treminio has written up an introductory post to Puppet and Vagrant and their use to make virtual machines for your PHP environments.



Why should I use a virtual machine?
Being a PHP developer has a much lower barrier to entry than Python, Ruby. Only Javascript is easier to start with. Tools such as XAMPP, MAMP, Homebrew, etc, make installing a basic LAMP stack on your computer extremely easy. So why would you want to give this up and use a slow, bulky and cryptic virtual machine?


He notes that the Puppet+Vagrant combination solves some of the common problems developers have setting up environments. He goes through what the two tools are and shows (screenshots) what the results look like. He includes a sample Puppet manifest, its configuration file, that loads an environment with PHP 5, Apache, a virtual host, PEAR, Composer and some other various configuration settings. He also mentions his PuPHPet tool he's created to make generating these kinds of configuration files simpler.


Link: https://jtreminio.com/2013/06/make_vagrant_up_yours

2013年6月30日星期日

Community News: Packagist Latest Releases for 06.30.2013

Recent releases from the Packagist:

2013年6月29日星期六

Community News: Packagist Latest Releases for 06.29.2013

Recent releases from the Packagist: