- voodoophp/voodoo (1.3.0)
A micro PHP 5.4 Modular MVC framework, that contains only the libraries to get you started - firesphere/silverstripe-newsmodule (2.0.10, 2.0.9.3, 2.0.9.2, 2.0.9.1, 2.0.9, 2.0.8, 2.0.7.1, 2.0.7, 2.0.6)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - titon/model (0.1.11, 0.1.10)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - prologue/phpconsole (v1.0.3)
Prologue Phpconsole is a package for interacting with Phpconsole in Laravel 4. - mozart/di (0.1.0)
Mozart Dependency Injection Library - polycademy/polyauth (1.0.5, 1.0.4)
Authentication & Authorisation Library - cnlpete/image-metadata-parser (v0.0.4)
An abstraction to Exif, ITPC and XMP - net_bazzline/component_requirement (v1.0.1)
php component requirement - fg/multiplayer (0.0.1)
Builds customizable video embed codes from any URL. - mv/mv-crud-generator-bundle (v1.0)
Symfony2 Doctrine Crud generator Bundle - jeroen-de-dauw/simple-cache (0.1)
Small library defining a minimalistic caching interface and provides some basic implementations - schmutzka/nettetranslator (2.0.3)
Translator for Nette (PHP framework). - schmutzka/gettexttranslator (2.0.3)
Translator for Nette (PHP framework). - vlucas/valitron (1.1.0)
Simple, elegant, stand-alone validation library with NO dependencies - simplon/payment (0.5.7, 0.5.6)
Flexible solution to enable payments for multiple payment providers. - sammaye/mongoyii (1.4.1, 1.4.0)
A Yii MongoDB ORM - florianwolters/component-core-enum (v0.4.1)
The Typesafe Enum pattern as a PHP component. - florianwolters/component-util-singleton (v0.3.2)
The Singleton (and Registry of Singletons a.k.a. Multiton) design pattern as a PHP component. - florianwolters/component-core-stringutils (v0.3.0)
Offers operations on the data type string as a PHP component. - tyz910/docx-templates (0.9)
Simple template engine for .docx - florianwolters/component-drawing-color (v0.1.0)
Models and operations on objects related to colors as a PHP component. - florianwolters/component-geometry (v0.1.1)
Models and operations on objects related to geometry as a PHP component. - florianwolters/component-core-valueobject (v0.1.0)
The Value Object implementation pattern as a PHP component. - moriony/silex-a1sms-provider (1.0.0)
A1 Sms Market client service provider for the Silex framwork - omnipay/omnipay (v1.0.1)
A framework agnostic, multi-gateway payment processing library
2013年6月30日星期日
Community News: Packagist Latest Releases for 06.30.2013
2013年6月29日星期六
Community News: Packagist Latest Releases for 06.29.2013
- uam/datatables-bundle (1.0.1, 1.1.1)
Datatables jquery plugin packaged as a Symfony bundle - titon/model-mysql (0.1.0)
Provides MySQL database access for the Titon Model package. - titon/model (0.1.9, 0.1.8, 0.1.7)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - titon/test (0.10.0)
The Titon test package provides classes and fixtures used for test cases. This should not be used in production. - sabre/event (0.0.1)
The sabre/event library provides utilities for lightweight event-based programming - oodle/krumo (v0.2.3)
KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates) - balanced/balanced (0.7.2)
Client for Balanced API - kmd/logviewer (0.1.8)
Laravel 4 log file viewer. - kevinlebrun/slug.php (1.0.0)
Slug helpers - uecode/amazon-bundle (v0.6.1)
Symfony2 Uecode Amazon Bundle - firesphere/silverstripe-newsmodule (2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - jbafford/elastica-extra-bundle (v0.2)
Provides additional functionality around ElasticaBundle - enkas/sofort (1.0.0)
Sofort library - phundament/p3media (0.12.0, 0.11.11)
Yii media file manager module with ckeditor integration - phundament/p3pages (0.12.0, 0.11.11, 0.11.10)
Page Manager - phundament/p3widgets (0.12.0)
Widget Manager - loic-sharma/menu (v1.0.0)
An expressive HTML Generator to create menus. - lms42/course-bundle (v0.3)
Course and lesson management for LMS. - lms42/quiz-bundle (v0.3)
Quiz bundle. - lms42/exam-bundle (v0.3.1)
Exam bundle. - lms42/content-bundle (v0.3)
Simple content management: pages and categories. - lms42/admin-bundle (v0.3)
Admin bundle for LMS. - willdurand/geocoder-bundle (1.2.5, 1.2.4)
Integration of Geocoder into Symfony2 - dracoblue/craur (1.7.4)
A lossless xml to json and json to xml converter (and csv/xlsx/yaml). Writing PHP Json/Xml/Csv/Yaml/excel Importers made easy - athletic/athletic (v0.1.5, v0.1.4)
PHP Benchmarking Framework - wikidi/release (0.0.2, 0.0.1)
Simple PHP release helper - payment/saferpay (2.1.2)
Saferpay payment service library - payment/saferpay-bundle (2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0.0)
Saferpay payment service library for symfony - staffim/rollbar-bundle (v1.0.0)
Bundle for Symfony2 that reports errors to Rollbar - ocramius/proxy-manager (0.4.0)
A library providing utilities to generate, instantiate and generally operate with Object Proxies - bit3/contao-doctrine-dbal-driver (3.0.12, 2.11.7)
Database Driver using Doctrine DBAL for Contao Open Source CMS - braincrafted/testing-bundle (v0.2, v0.1.1)
Tools for testing Symfony2 bundles - gamespree/payment (0.6.1)
Flexible solution to enable payments for multiple payment providers. - phery/phery (2.5.6)
XAJAX alternative, phery.js is a library in PHP that maps to all jQuery functions, DOM manipulation, meta arguments and serialization, seamless ajax integration, RESTful emulation, form submission and partial rendering views, plus its PSR-0 compatible - spoonx/sxcore (1.2.0)
A library of tested components sed throughout the Sx namespace.
2013年6月28日星期五
Site News: Popular Posts for the Week of 06.28.2013
- Site News: Popular Posts for the Week of 06.21.2013
- Community News: Latest PEAR Releases for 06.24.2013
- Blake Gardner: Practical usage of PHP 5.5 generators: yield keyword
- CodeForest.com: Creating simple tasks app with Backbone.js and Slim micro framework (part 1)
- Evert Pot: PHP 5.5.0 released!
- Thomas Weinert: Basics: Using Arduino From PHP
- Cal Evans: Day Camp 4 Developers #6: Non-Programming for Programmers
- The PHP.cc: PHP 5.5: Out-of-the-Box Bytecode Cache
- The PHP.cc: PHP 5.5: New CLASS Constant
- NetTuts.com: From Procedural to Object Oriented PHP
Community News: Packagist Latest Releases for 06.28.2013
- slywalker/base (1.0.0)
CakePHP Base Plugin - titon/model (0.1.6)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - mparaiso/consoleserviceprovider (0.1.0)
Symfony Console integration for Silex - nategood/httpful (0.2.5)
A Readable, Chainable, REST friendly, PHP HTTP Client - siad007/packagist (1.0.1)
Packagist API Client and View-Helper-Collection for Zend Framework 2 - chilldev/file-manager-bundle (0.1.1)
File manager bundle for Symfony2. - vojtech-dobes/nette-forms-gpspicker (v1.0.8)
Google Maps based picker of coordinates for Nette Framework. - chartbeat/chartbeat-php (1.0.0)
PHP library for Chartbeat - firesphere/silverstripe-newsmodule (2.0, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7, 1.4.5)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - cretbogdan/rhapsody-orm (1.0.1, 1.0)
Simple ORM for PHP 5.3 - ee/dataexporter-bundle (v0.4.2)
Easy export data to CSV, XML, HTML, JSON or XLS - polycademy/polyauth (1.0.3, 1.0.2)
Authentication & Authorisation Library - payment/saferpay (2.1.1, 2.1.0)
Saferpay payment service library - stormpath/sdk (0.3.2)
A PHP wrapper for Stormpath's API - fightbulc/cirrus (1.0.6)
Soundcloud API Reader Library to fetch data for users, tracks and playlists - imevul/mapster (1.1.5)
Lightweight data mapper. - netglue/ng-contact (0.1.2)
ZF2 Module providing a simple re-usable contact form for a website - ncsuwebdev/otframework (3.0.7)
Base application framework - intervention/helper (1.1.0)
Easier handling and formating of strings and dates - rackspace/php-opencloud (v1.5.8)
Rackspace open cloud php library - m4tthumphrey/php-gitlab-api (0.7.0)
GitLab API client - mlalbuquerque/silex-skeleton (v3.4.2, v3.4.1)
A Silex skeleton for little (not tiny) projects - leaseweb/memcache-bundle (v1.1.1)
Memcache Doctrine caching and session storage in the Web Debug Toolbar - net_bazzline/component_requirement (v1.0.0, v0.9.0)
php component requirement - stojg/crop (1.2.0)
Image cropping classes - afoozle/github-webhook (0.4)
Github Webhook tools for php - intahwebz/flickrguzzle (0.2.2)
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.
Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%). - yunait/level3 (v0.0.3)
A RESTful API builder based on 3-level model (URI, HTTP and Hypermedia) - bit3/contao-doctrine-dbal-driver (2.11.6, 3.0.11)
Database Driver using Doctrine DBAL for Contao Open Source CMS - kappa/filesystem (v0.9)
Easy system for work with files and directories(FileUpload, Image, File, Directory) - bit3/contao-meta-palettes (1.4.4)
MetaPalettes extension for Contao OpenSource CMS - bit3/contao-dependency-container (1.0.1)
Dependency container based on pimple for Contao open source cms. - uzyn/cakephp-opauth (1.0.7)
Opauth plugin for CakePHP v2.x, allowing simple plug-n-play 3rd-party authentication with CakePHP - kumatch/casule (0.1.0)
Creates token and challenge by some attributes. - soliantconsulting/simplefm (2.0.0beta9)
FileMaker Server XML API Adapter - slywalker/boost_cake (0.9.4)
BoostCake is a plugin for CakePHP using Bootstrap - mfacenet/squeezd-ldap (v0.0.0-alpha1)
LDAP Authentication and Management module for ZF2 - klein/klein (v1.2.0)
A lightning fast router for PHP
PHP Town Hall Podcast: Episode 8 - Use Your Time Machine to Go to PeersConf Yesterday
The PHP Town Hall podcast has posted their latest episode - Episode #8, "Use Your Time Machine to Go to PeersConf Yesterday"
In this episode Ben and Phil talk to the super-talented conference organiser Jessica D'Amico, joined by avid conference goer and PHP rockstar Matt Frost. We all gab a bunch about conferences in general, specifically LaraCon, PeersConf and php|tek. We fucked up and didn't get this episode out soon enough to actually get her any sales for her latest conferences PeersConf (Phil is at PeersConf right now), but you should definitely follow Jess to see what conferences she puts on in the future, they're always great.
You can listen to this episode either through the in-page player or by downloading the mp3. You can also subscribe to their feed to get this and other new episodes as they're released.
Link: http://phptownhall.com/blog/2013/06/27/episode-8-use-your-time-machine-to-go-to-peersconf-yesterday
NetTuts.com: Diving Into Symfony 2
On NetTuts.com there's a recent tutorial posted that helps you "dive into Symfony2" and gives you an introduction to the framework including some code samples of a basic MVC structure.
Frameworks are hot topics in the web-industry and have been for some time. In this vast sea of flavors is Symfony - an extensive PHP framework that follows the ever popular MVC paradigm. Its learning curve is probably a little steeper than its fellow competitors, like CodeIgniter. Don't worry, once it grows on you, you'll feel more powerful than ever and you'll be able to develop fantastic applications.
They walk you through a few different things including the overall flow of a Symfony2 application and getting it installed (and where its files live). They show you how to use the console commands to generate parts of an application and creating controllers/routes/output via Twig as well.
Link: http://net.tutsplus.com/tutorials/php/diving-into-symfony-2-2
Amazon Web Services PHP Blog: Syncing Data with Amazon S3
On the Amazon AWS blog there's a recent post showing you how to sync data with S3 and handle multiple files quickly and easily.
Have you ever needed to upload an entire directory of files to Amazon S3 or download an Amazon S3 bucket to a local directory? With a recent release of the AWS SDK for PHP, this is now not only possible, but really simple.
He includes example code for doing it both ways - upload and download syncing - as well as some options you can use to customize the connection. You can define things like ACL settings, the number of concurrent connections and if you want the debug options turned off or on.
Link: http://blogs.aws.amazon.com/php/post/Tx2W9JAA7RXVOXA/Syncing-Data-with-Amazon-S3
PHPMaster.com: Running Monte Carlo Simulations in PHP
On PHPMaster.com there's a new tutorial by J Armando Jeronymo that shows how you can run Monte Carlo simulations in PHP (more on that simulation type here).
One of the exciting things in the 1980′s was programming simulations to solve complex analytical problems, and one of the most useful techniques employed was running Monte Carlo simulations. The approach repeatedly runs a simulation many times over to calculate the most likely outcome. Although PHP isn't known as a scientific or research programming language, Monte Carlo simulations can easily be written in a PHP web app. In this article, I'll show you how.
He walks you through the whole problem he tries to solve with the simulation - a multi-step trip that involved different roads, situations and possible stops along the way. He breaks it out into the various stages (labeled with letters) and shows how you might render this as a "MyTrip" class with distances in "travel minutes". Following along with the Monte Carlo randomness, though, he shows how to inject a bit of randomness into the mix accounting for some of the trouble he had along the way.
Link: http://phpmaster.com/running-monte-carlo-simulations-in-php
2013年6月27日星期四
Site News: Blast from the Past - One Year Ago in PHP
- Joshua Thijssen's Blog: Using vagrant and puppet to setup your symfony2 environment
- NetTuts.com: Build Web Apps from Scratch with Laravel - The Eloquent ORM
- James Fuller's Blog: Why can't someone just make a good IDE for PHP?
- PHPMaster.com: PHP DOM: Using XPath
- NetTuts.com: Easy Package Management With Composer
- DZone.com: How to Build PHP 5.4 Applications with Visual Studio
- Symfony Blog: Symfony Live San Francisco 2012: The Schedule
- CodeDevelopr.com: 50 Web Developer Documentation Manuals You Need To Know About
- Voices of the ElePHPant Podcast: It's the booze talking, episode 03: APIs
- MaltBlue.com: 4 Keys to a Great Software Development Methodology
- James Morris' Blog: Parsing HTML with DOMDocument and DOMXPath::Query
- Community News: Zend Framework Security Upgrade (Zend_XmlRpc XXE Issue)
- PHPMaster.com: Managing Class Dependencies: Dependency Injection, Service Locators & Factories, Pt 2
- Zend: Results from "Zend Developer Pulse" 2012 Survey Posted
- Jeremy Cook's Blog: Normalising DateTimes with Doctrine Events
Community News: Packagist Latest Releases for 06.27.2013
- polycademy/polyauth (1.0.1)
Authentication & Authorisation Library - makesites/kisscms (1.8.0)
Content Management made Simple - slywalker/boost_cake (0.9.3)
BoostCake is a plugin for CakePHP using Bootstrap - wave-framework/wave (v3.1.1)
Wave is a lightweight PHP5.3 MVC framework - arara/process (0.6.2)
Simple package for fork process - rdlowrey/auryn (v0.5.0)
Auryn is a Dependency Injection Container designed to wire together S.O.L.I.D., object-oriented PHP applications. - devco/trilogy (1.2.0)
Simple, lightweight SQL statement abstraction. - einstein/environmentalist (0.0.1)
Cleans up your environment by managing include paths, error handlers, and autoloading - einstein/open_struct (0.0.1)
Data structure that allows the definition of arbitrary methods and properties at runtime - ddeboer/tesseract (1.1)
A wrapper for the Tesseract OCR engine - uecode/amazon-bundle (v0.6.0)
Symfony2 Uecode Amazon Bundle - sankynet/lib-php (1.2.0)
SankyNet PHP Libraries - splashmedia/linkedin-php (1.0.0)
LinkedIn OAuth client based on abrah.am's Twitter OAuth library - firesphere/silverstripe-newsmodule (1.4.4.1, 1.4.4, 1.4.3.3)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - phpmyfaq/phpmyfaq (2.8.1)
FAQ System - thorsten/phpmyfaq (2.8.1)
FAQ System - elementtree/elementtree (0.2.2)
simple PHP XML-like tree - nelmio/solarium-bundle (v2.0.4)
Integration with solarium solr client. - webignition/robots-txt-parser (1.0.1, 1.0)
Parser for robots.txt files - yunait/level3 (v0.0.2)
A RESTful API builder based on 3-level model (URI, HTTP and Hypermedia) - postmaster/postmaster-php (1.2.0)
Library for postmaster.io service - friendsofsymfony/oauth2-php (1.0.6)
OAuth2 library - stojg/crop (1.1.1, v1.1.0)
Image cropping classes - riverline/worker-bundle (1.1.2)
Symfony2 Bundle to use queue with workers - friendsofsymfony/oauth-server-bundle (1.3.1, 1.3.0)
Symfony2 OAuth Server Bundle - voodoophp/voodoo (1.2.1)
A micro PHP 5.4 Modular MVC framework, that contains only the libraries to get you started - caffe1neadd1ct/php-nbt-decoder-encoder (1.0.2, 1.0.1)
A PHP-based NBT format decoder and encoder, for the Minecraft NBT format. - zweifisch/zf (v0.5.1)
a micro php web/cli framework/router - graze/guzzle-jsonrpc (0.1.1, 0.1.0)
JSON-RPC client for Guzzle - reprovinci/doctrine-encrypt (v3.0.1, v3.0.0)
Package encrypts and decrypts Doctrine fields through life cycle events. - caouecs/laravel4-lang (0.2.2)
Languages for Laravel4 - iphp/filestore-bundle (v0.2)
Upload files for doctrine entities in symfony 2 project - m4tthumphrey/php-gitlab-api (0.6.1)
GitLab API client - widget/widget (0.9.3-RC1)
A new way to write PHP - turnaev/ext-data-grid-bundle (v1.0.0, v1.0.1)
Symfony2 Datagrid Bundle - m6web/firewall-bundle (0.2.0)
Bundle providing IP filtering features for controllers and actions - yfix/yf (1.0.1)
YF PHP Framework - m6web/firewall (0.2.0)
Library providing IP filtering features - che/doctrine-decimal (0.1.0)
Doctrine integration for Decimal type - mardy-git/hmac (v0.2.0)
A keyed-Hash Message Authentication Code (HMAC). Used for application to application authentication. - tedivm/stash-bundle (v0.2.2)
Incorporates the Stash caching library into Symfony. - laiz/laiz-template (v1.2.4)
Simple template engine - adfab/game (0.2.12)
The Game module !
The PHP.cc: Urban Legends and Error Handling
In this new post to the PHP.cc blog, Stefan Priebsch looks at the relationship between urban legends and error handing in PHP.
Ending up in such a situation [as the tourists in the urban legend] is not the fault of the underpass: the error, made somewhere upstream, merely shows up right when approaching the underpass, and is usually difficult (or at least tedious) to handle. PHP as a programming language, just like any dynamic language, may at first appear to not need overly strict validations of data. Validation of data, however, is directly related to error handling: If data is invalid, this should be an error or an exception (if you write OOP code, which you should be doing). This error needs to be handled somewhere.
He talks about how things like field and value validation can help prevent errors further down the road. He mentions the split between application and domain logic and suggests that it's the role of the app logic to prevent bad data from making it thorough to the domain.
In software development, it is crucial that you handle any errors as soon as they occur. This requires you to actually realize that an error has occurred.
Link: http://thephp.cc/viewpoints/blog/2013/06/urban-legends-and-error-handling
Anna Filina: How to Motivate Your Developers
Anna Filina has a quick new post to her site today with some helpful tips on how to motivate your developers (and coworkers) to make for the best end result.
When developers are not motivated, progress is slow and quality is low. This ultimately affects company revenues and can lead to reduced opportunities for all employees. Motivation leads in the opposite direction: wealth and happiness. The first thing to understand about motivation is that it's internal. We can't force someone to become motivated, but we can still have a strong influence. Here are my top three picks to increase motivation from my presentation at IPC 2013 in Berlin.
Her top three are:
- Setting goals for the group and a purpose for making it good
- Focus on the "small wins" sometimes to keep motivation high
- Let developers use their full range of talents, don't force them into one niche
Link: http://annafilina.com/blog/motivate-developers
NuoDB.com: Using NuoDB from the PHP Zend Framework
On the NuoDB site there's a recent post showing how to use this cloud-based database solution from inside Zend Framework applications.
The Zend Framework is an object oriented PHP framework that can be used to construct interactive web applications. NuoDB supports both Zend Framework version 1 and version 2 . In this TechBlog article, I will show you how to use NuoDB with both Zend Framework v1 and v2. I will use the example applications that are provided in the Zend Framework documentation and show you how to make them work with NuoDB.
They briefly walk you through the install and configuration of Apache and NuoDB you'll need to get things up and running. Sample code is included showing you how to install the NuoDB PDO driver, pull down their github repo with the needed files (for both ZF1 and ZF2) and implementing in each version's quickstart application.
Link: http://www.nuodb.com/techblog/2013/06/20/using-nuodb-from-the-php-zend-framework
Simon Champion: PHP Upgrade Broke My Data Importer
In his latest post Simon Champion recounts some of the issues he had when upgrading to PHP 5.4, what's usually a smooth transition from PHP 5.3. His specific problem came in a difference between the previous mysql_query call and the more-correct PDO usage.
Our office is in the thoes of a large-scale upgrade of the servers in our data center. The new version of Debian (version 7, or "Wheezy") has been officially released, having been in beta for the last few millenia, and our Ops team are slowly installing it across all our servers. This is great news, as it means we get to upgrade to PHP 5.4. Woohoo! New shininess. [...] We were ready. The upgrade should have been a breeze. But it wasn't.
He talks about his process of digging through the code trying to figure out why a call to import a CSV file into MySQL was failing. Their Data Importer component started failing with an error from MySQL about the "LOAD INFILE" not being allowed for use. He shares a "work around" that's not ideal (using exec) that manually imports the file into the database. He does point out that it could be something Debian-specific as they don't upgrade the version, just apply security patches retroactively.
We're making an effort to stick to modern PHP coding standards, so we're using PDO throughout, which makes is all the more galling. [...] Given that we do have a work-around now and everything is back up and running, I'm going to have to let this one drop; I don't have the time to try chasing it any more. But I hope this blog post will prove useful to anyone else having the same issue.
Link: http://spudley.com/blog/php-upgrade-broke-my-data-importer
2013年6月26日星期三
Community News: Latest Releases from PHPClasses.org
- Config4allPackage:Summary:Load configuration files in multiple formatsGroups:Author:Description:This class can load configuration files in multiple formats...
Read more at http://www.phpclasses.org/package/8111-PHP-Load-configuration-files-in-multiple-formats.html - Centralino Fluent Query BuilderPackage:Summary:Build SQL queries with fluent function callsGroups:Author:Description:This package can build SQL queries with fluent function calls...
Read more at http://www.phpclasses.org/package/8110-PHP-Build-SQL-queries-with-fluent-function-calls.html - PHP Twitter FeedPackage:Summary:Generate RSS feeds from timelines and searchesGroups:Author:Description:This class can generate RSS feeds from timelines and searches...
Read more at http://www.phpclasses.org/package/8109-PHP-Generate-RSS-feeds-from-timelines-and-searches.html - Config Manager ClassPackage:Summary:Read configuration values from PHP scriptsGroups:Author:Description:This class can read configuration values from PHP scripts...
Read more at http://www.phpclasses.org/package/8087-PHP-Read-configuration-values-from-PHP-scripts.html - cMySQL_DBPackage:Summary:Access and query MySQL databasesGroups:Author:Description:This class can access and query MySQL databases...
Read more at http://www.phpclasses.org/package/8104-PHP-Access-and-query-MySQL-databases.html
Community News: Packagist Latest Releases for 06.26.2013
- jridgewell/form-validator (v1.1.2, v1.1.1, v1.1)
A simple HTML form validator - ehann/frontend-bundle (1.0.1)
Provides frontend components and layouts. - krakerag/experian-qas (v0.2.1, v0.2)
Experian QAS library for Postcode search - jeboehm/lampcp (0.6.5)
The linux apache mysql php control panel - adfab/user (0.1.27)
Module managing user - anahkiasen/rocketeer (0.4.0, 0.3.2)
Rocketeer provides a fast and easy to deploy your Laravel projects - bjyoungblood/bjy-authorize (1.4.0-beta1)
ZendAcl based firewall system for ZF2 dispatch protection - egulias/listeners-debug-command-bundle (1.5.0)
Symfony 2 console command to debug listeners - wrep/daemonizable-command (1.2.0)
Daemonizable (endless running) commands for Symfony2. - titon/model (0.1.5)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - popsugar/shopstyle-api (v2.0.2)
PHP implementation of ShopStyle API - kraksoft/bootstrap-bundle (2.3.2.1)
Add the Bootstrap inside the Symfony2 framework - uecode/uecode-bundle (0.1.3, 0.1.2, 0.1.1)
Symfony2 Uecode Bundle - arara/process (0.6.1, 0.6.0)
Simple package for fork process - norzechowicz/aceeditor-bundle (0.1.0)
Bundle that integrate excellent JavaScript ace editor into Symfony2 Form. - firesphere/silverstripe-newsmodule (1.4.3.2)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - uecode/amazon-bundle (v0.5.1, v0.5.0)
Symfony2 Uecode Amazon Bundle - ticketevolution/ticketevolution-php (2.0.5)
A PHP 5.3+ library for the Ticket Evolution API. - uecode/common-bundle (0.2.12, 0.2.10, 0.2.9, 0.2.8, 0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0)
Common UE Bundle for Symfony2 - fg/essence (1.4.1)
Extracts informations about medias on the web, like youtube videos, twitter statuses or blog articles. - imevul/scopefilter (1.0.1)
Lightweight array filtering library that uses 'scopes' to define filters. - asm89/rx.php (0.1.0)
Reactive extensions for php. - seld/php-console (1.2.3)
A console to quickly try and run PHP code in your browser - fillup/apiaxle (0.5.1, 0.5)
PHP library/module for interacting with ApiAxle APIs. - elementtree/elementtree (0.2.1)
simple PHP XML-like tree - minfraud/http (v1.53)
MaxMind minFraud HTTP API - mlalbuquerque/silex-skeleton (v3.4.0)
A Silex skeleton for little (not tiny) projects - willskates/silex-skelington (1.3.1)
- idetia/doctrine-extensions-bundle (v1.1.0)
Integration of the gedmo/doctrine-extensions with Symfony2 - data-values/data-values (2013-06-25)
A library containing definitions for various values (ie quantities, times, coordinates, etc) - intervention/helper (1.0.4)
Easier handling and formating of strings and dates - swftools/swftools (0.3.0)
PHP SwfTools - rezzza/shorty-bundle (1.0.0)
Underwear for your long urls in Symfony - rezzza/shorty (1.0.0)
Underwear for your long urls - wikibase/wikibase (2013-06-25)
Structured data repository for MediaWiki - php-mp4box/php-mp4box (0.3.0)
PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box - php-unoconv/php-unoconv (0.3.0)
Unoconv PHP, an Object Oriented library for easy file conversion with LibreOffice's unoconv - alchemy/ghostscript (0.4.0)
Ghostscript PDF, a library to handle PDF through ghostscript - raftalks/form (1.3.1, 1.3.0)
Easy way to make Forms with PHP. Specially useful with Laravel 4. - jiriknesl/mockista (1.2.1)
Mockista is library for mocking, which I've written, because I find mocking in PHPUnit slow. - pscheit/psc-cms (1.2.6, 1.3.0)
a content management system ontop of webforge. - eloquent/schemer (0.3.1)
Generic schema validation library for PHP, based on JSON Schema. - voodoophp/voodoo (1.2.0)
A micro PHP 5.4 Modular MVC framework, that contains only the libraries to get you started
The PHP.cc: PHP 5.5: New CLASS Constant
The PHP.cc have posted another article in their series looking at the new features that come with the latest release of PHP (5.5). In this new post they cover the "CLASS" constant.
Last week, the first stable version of PHP 5.5 was released. It introduced a class-level constant, aptly named CLASS, that is automatically available on all classes and holds the fully-qualified name of that class. [...] So why would you need such a constant? [...] When you need the fully qualified name of a namespaced class that is referenced by a namespace alias ... then it gets interesting.
He illustrates with an example of a unit test using stubs and mocks. The normal method requires the definition of the class namespace in the "getMock" call. With the CLASS constant, PHP can extract that information from the namespace referenced in the "use" and drop it in as a replacement.
Link: http://thephp.cc/viewpoints/blog/2013/06/php-5-5-new-class-constant
PHPMaster.com: Understanding Streams in PHP
PHPMaster.com has a new tutorial for those interested in how to work with streams, he base resources behind working with things like files and remote connections.
Streams are resources provided by PHP that we often use transparently, but which can also be very powerful tools. By learning how to harness their power, we can take our applications to a higher level. [...] Every stream has a implementation wrapper which has the additional code necessary to handle the specific protocol or encoding. PHP provides some built-in wrappers and we can easily create and register custom ones. We can even modify or enhance the behavior of wrappers using contexts and filters.
They start by introducing two of the most commonly used streams - "file" and "http" as well as some of the wrappers that can be used to work with them. He also talks about the "php://" stream, a special instance that lets you access things like a temporary memory block and stdout/stdin. He finishes up the tutorial with a look at "contexts" - the parameters that can be used to modify the stream wrapper (like his HTTP example).
Link: http://phpmaster.com/%EF%BB%BFunderstanding-streams-in-php
SitePoint.com: How to Add OAuth Authentication to Your Twitter App
In this quick post to SitePoint, they show you how to use the Twitter OAuth library to connect your application with the new Twitter OAuth authentication methods.
Thanks Twitter. Not only have you removed open access to public Twitter timelines, you're expecting developers to contend with cryptic authentication documentation! Many of us simply want to display our own tweets on our own website, but it's obvious Twitter prefers us to use their widgets. Despite the convoluted Twitter instructions, implementing OAuth in your lovingly-crafted API 1.0 application is reasonably straight-forward if you use the libraries provided by talented group of (non-Twitter) developers.
They break it down into a few easy steps (largely made easy because the library does most of the heavy lifting for you):
- Create your Twitter Application
- Create an Access Token
- Download the OAuth Library
- Modify Your Timeline Fetching Code
Link: http://www.sitepoint.com/twitter-1-1-oauth-php
2013年6月25日星期二
Community News: Latest PECL Releases for 06.25.2013
- mysqlnd_ms 1.5.2
Fix hardcoded version number - radius 1.2.6
- Support added for PHP 5.4 and 5.5. (Johannes)
- Fixed bug #60885 (Radius module causing Apache segmentation fault). (Adam)
- Fixed a crash when calling radius_server_secret() with no servers configured.
(Adam) - pecl_http 1.7.6
* Fixed bug #64380 (PHP-5.5 build fails) - memoize 0.2.0
- bundled storage modules are no longer separate extensions
- memcached module now requires libmemcached 1.0.x
- added support for TTL by function (optional argument to memoize())
- win32 fixes - riak 0.4.3
- Bugs
Issue9: riak.persistent.timeout now in seconds, and default changed to 5 seconds
- Improvements
Issue3: Streaming mapreduce
Issue8: RiakBucket->listKey function added
Issue7: Return updated object after put
Issue11: Implement PBC head support
RiakBucket->streamKeys function added
RiakBucket->delete now accept a RiakObject or a string with the key to delete.
- API Changes
Issue12: RiakMapreducePhase renamed to RiakMrPhase
RiakBucket->getObject renamed to RiakBucket->get
RiakBucket->deleteObject renamed to RiakBucket->delete
RiakBucket->putObject renamed to RiakBucket->put
RiakOBject->__constructor key is now optional (if none is set on put, riak will create a random key).
RiakBucket->put no longer accepts key as second parameter
RiakBucket->put/get now takes an optional RiakGetRequestConfiguration - mysqlnd_ms 1.5.1
GA release
Community News: Packagist Latest Releases for 06.25.2013
- uecode/amazon-bundle (v0.4.2, v0.4.1, v0.4.0)
Symfony2 Uecode Amazon Bundle - uecode/common-bundle (0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0)
Common UE Bundle for Symfony2 - codeception/codeception (1.6.3.1)
BDD-style testing framework - arara/process (0.5.0, 0.4.0)
Simple package for fork process - ticketevolution/ticketevolution-php (2.0.4)
A PHP 5.3+ library for the Ticket Evolution API. - sarasa/core (v0.2.1)
PHP Core Framework for PHP 5.3 - hwi/oauth-bundle (0.2.6)
Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony2. - doctrine/doctrine-module (0.8.0-beta1)
Zend Framework 2 Module that provides Doctrine basic functionality required for ORM and ODM modules - imevul/scopefilter (1.0.0)
Lightweight array filtering library that uses 'scopes' to define filters. - cac/esp-api-engine (v0.1)
Crazy Awesome E-Ngine API Client - bjyoungblood/BjyAuthorize (1.3.1)
ZendAcl based firewall system for ZF2 dispatch protection - elementtree/elementtree (0.2.0, 0.1.5)
simple PHP XML-like tree - sonata-project/propel-admin-bundle (1.0.0)
Symfony Sonata / Integrate Propel into the SonataAdminBundle - anahkiasen/rocketeer (0.3.1, 0.3.0)
Rocketeer provides a fast and easy to deploy your Laravel projects - doctrine/doctrine-orm-module (0.8.0-beta1)
Zend Framework 2 Module that provides Doctrine ORM functionality - chrisnoden/talkback (1.0.2, 1.0.1)
Logging and messaging library that builds upon Psr-3 with Growl, Prowl, Html and other modules - os/tools-bundle (2.3.7)
OS Tools Bundle for Symfony2 - zf-commons/zfc-twig (1.1.5)
Zend Framework 2 Module that provides a Twig rendering strategy and extensions to render actions or trigger events from your templates - h4cc/phpqatools (1.0.0)
A meta composer package for PHP QA Tools. - amldigital/twitterfeed (0.0.4)
A quick and easy way to deploy a twitter feed on a website. - jmikola/js-assets-helper-bundle (v1.0.1)
Exposes the AssetsHelper service from Symfony2's templating component to JavaScript, allowing relative or absolute asset URI's to be generated client-side. - omnipay/omnipay (v1.0.0)
Omnipay is a framework agnostic multi-gateway payment processing library - payum/payum-bundle (0.5.1)
The payment bundle integrates payum libs into symfony2 framework - payum/payum (0.5.2)
Payment lib - orchestra/support (v2.0.4)
Orchestra Platform 2 Support Component - payment/saferpay (2.0.5, 2.0.4)
Saferpay payment service library - pomander/pomander (0.3.4, 0.3.3)
Deployment for PHP - mf2/mf2 (v0.1.17)
A pure (generic) microformats-2 parser - pomander/wordpress (0.1)
Pomander plugin to deploy and manage Wordpress sites - sandstorm/plumber (1.1.0)
Profiling Toolkit for TYPO3 Flow and Neos - bu/json-response-bundle (1.0.0)
Symfony2 bundle allows to use templates for json responses - bu/extra-param-converter-bundle (1.0.0)
Symfony2 bundle that extends Sensio ParamConverter functionality, allowing to convert simple GET and complex POST data - liip/soap-recorder-bundle (0.9.8)
A simple recorder for SOAP communication - anroots/menu (3.1.0)
A Kohana module to help with building HTML navigation menus - liip/dataaggregator (v1.0)
The data aggregator cumulates information provided by a loader and routes them to a persistence layer - lms42/exam-bundle (v0.3)
Exam bundle. - liip/monitor-bundle (1.0.0)
Liip Monitor Bundle - liip/monitor (1.0.1)
Liip Monitor library - titon/cache (0.4.0)
The Titon cache package provides a data caching layer that supports multiple storage engines. - titon/mvc (0.4.0)
The Titon MVC package adds support for the Model-View-Controller paradigm by packaging the external Model, View, Controller and Route packages into a single package. This single MVC package has full application support. - chonny/imagine (v0.4.1.1)
Image processing for PHP 5.3 - titon/controller (0.2.0)
The Titon controller package provides controllers and actions to handle the HTTP request and response. - bear/package (0.8.4)
BEAR.Sunday application package - titon/g11n (0.8.0)
The Titon g11n package handles the localization and internationalization of your application. - titon/view (0.2.0)
The Titon view package provides template handling with the use of a rendering engine and helpers. - titon/route (0.6.0)
The Titon route package adds support for dynamic route handling and mapping. - titon/http (0.6.0)
The Titon HTTP package provides classes for interacting with sessions, cookies and the request and response. - titon/io (0.5.0)
The Titon IO package provides classes that handle file manipulation and resource bundling. - titon/debug (0.5.0)
The Titon debug package provides debugging and advanced error and exception handling. - titon/event (0.2.0)
The Titon event package provides functionality for notifying a list of objects during an event. - titon/environment (0.8.0)
The Titon environment package provides multiple environment configuration and bootstrapping support. - titon/type (0.7.0)
The Titon type package provides class like structure and advanced functionality for arrays, strings, objects and enums. - titon/common (0.8.0)
The Titon common package provides global functionality like class traits and augmentation as well as dependency and configuration management. - mtrbean/mongo-json (1.1.0)
A helper library for serializing MongoDB types to JSON string - titon/utility (0.9.0)
The Titon utility package provides convenience classes for basic tasks like validation, formatting, sanitization and more.
The PHP.cc: PHP 5.5: Out-of-the-Box Bytecode Cache
In a new post to their site, the PHP.cc (well, Sebastian Bergmann) takes a look at the bytecode caching feature that's included in the latest release of PHP, version 5.5.
PHP is an interpreted language. The default PHP runtime, the one that can be obtained from php.net, compiles PHP sourcecode to an intermediate representation called PHP bytecode which is then executed. A bytecode cache stores this compiled representation of PHP sourcecode in shared memory. This eliminates the need to load and compile sourcecode on each request which leads to a significant increase in performance (up to 70% more requests per second).
He looks some at "the past" of PHP and how it made it up from the world of PHP 4.x to PHP 5.4 and the de-facto bytecode cache before now, APC. With the introduction of PHP 5.5, though, developers have access to an integrated version of the ZendOptimizer+ cache built right into the language. They include a little bit of documentation about how to enable it and how to install it via PECL if it's not already built in.
Link: http://thephp.cc/viewpoints/blog/2013/06/php-5-5-out-of-the-box-bytecode-cache
JetBrains Blog: Introducing PhpStorm Video Tutorials
If you're a PHPStorm user, you already know some about what the IDE can do and the features it brings to the table. If you're not, though, the folks at JetBrains have put together a set of tutorial videos to help introduce you to this powerful tool.
A lot of PhpStorm users have been asking us to create a series of video tutorials. Today, we're happy to announce the availability of about two hours of video tutorials around PhpStorm which Maarten has been working on for the past few weeks. JetBrains.TV and YouTube playlist are also available.
Videos already in the list introduce you to the IDE and its basic features, actions and navigations, several PHP-specific development topics as well as ones related to HTML-specific development.
Link: http://blog.jetbrains.com/phpstorm/2013/06/introducing-phpstorm-video-tutorials
CodeForest.com: Creating simple tasks app with Backbone.js and Slim micro framework (part 1)
New on CodeForest.com today, Luka Peharda has posted the first part of a series that combines the Slim microframework with backbone.js to make a simple tasks (to-do) application.
The app in this tutorial will be called "Tasks". I know, right? Super creative. This first article will give an introduction to the technologies and the idea of the series. Also, we'll cover project structure and entire PHP side of the story. In second article we'll cover Backbone.js side of the story and create simple tasks application which we'll refine and upgrade in later articles (third and fourth one).
They introduce the two technologies (briefly) and get right in to the directory and database structure they'll be using. They use the NotORM library for accessing the database. Code is included showing the routes for getting, adding, updating and deleting tasks out of the database.
Link: http://www.codeforest.net/creating-simple-tasks-app-with-backbone-js-and-slim-micro-framework-part-1
PHPMaster.com: Inattention Blindess - Missing the Obvious
On PHPMaster.com today there's an interesting article about something called "inattention blindness" - basically, the situation that comes up when you can't seem to find an issue/bug yet it's completely obvious to someone else.
Your code isn't working! You don't know why and you've been staring at it for what seems like hours. You're grumpy. You're falling behind schedule. You're getting increasingly irritated. Why doesn't it work? Why can't you see the bug? It can't be so hard to find, can it? Out of sheer frustration (as opposed to rational thought) you call over a coworker to help you find the problem. Within seconds they do what's been seemingly beyond you - they identify the source of the issue. To make matters worse, it's painfully simple. [...] Inattention blindness is a phenomena related to people's perception of the data they receive through their senses.
The talks about the invisible gorilla test and four theories that might cause the person to miss the obvious. He then relates this back to programming, pointing out a few reasons you might "miss the gorilla" when it comes to debugging your code:
- Specific Language Experience / Programmer Expectations
- Operator Overloading
- Syntactic Noise
- Whitespace - Vertical and Horizontal
Link: http://phpmaster.com/inattention-blindess-missing-the-obvious
2013年6月24日星期一
Community News: Packagist Latest Releases for 06.24.2013
- icecave/archer (0.5.0)
Testing, CI and documentation of PHP projects by convention. - eloquent/pbkdf2-compat (1.0.0)
A compatibility library for the PHP 5.5 function hash_pbkdf2(). - enygma/expose (1.5)
An intrusion detection library based on PHPIDS - maximebf/debugbar (1.0.3)
Debug bar in the browser for php application - krakerag/experian-qas (v0.1)
Experian QAS library for Postcode search - rmzamora/knp-menu-bundle (v2.0.0-alpha1)
This bundle provides an integration of the KnpMenu library. rmzamora forked - knplabs/knp-menu-bundle (v2.0.0-alpha1)
This bundle provides an integration of the KnpMenu library - anahkiasen/rocketeer (0.2.1, 0.2.0, 0.1.1)
Rocketeer provides a fast and easy to deploy your Laravel projects - netvlies/form-bundle (1.0.1)
NetvliesFormBundle - chrisnoden/talkback (1.0.0)
Logging and messaging library that builds upon Psr-3 with Growl, Prowl, Html and other modules - endroid/sudoku (1.0.1)
Endroid Sudoku solver - endroid/tile (1.1.1)
Endroid Tile - endroid/tile-bundle (1.1.1)
Endroid Tile Bundle for Symfony - knplabs/knp-menu (v2.0.0-alpha1)
An object oriented menu library - cypresslab/gitelephant (1.0.0-alpha4)
An abstraction layer for git written in PHP 5.3 - fanforfun/eyecon-datepicker-bundle (v1.0)
Eyecon Datepicker Bundle for Symfony2 - fanforfun/jquery-meiomask-bundle (v1.0)
MeioMask Bundle for Symfony2 - endroid/qrcode (1.1.3)
Endroid QR Code - endroid/qrcode-bundle (1.1.2)
Endroid Qr Code Bundle for Symfony - endroid/twitter-bundle (1.1.1)
Endroid Twitter Bundle for Symfony - endroid/twitter (1.1.2)
Endroid Twitter - endroid/gcm-bundle (1.2.1)
Endroid Google Cloud Messaging Bundle for Symfony - endroid/gcm (1.2.1)
Endroid Google Cloud Messaging - bacardi55/carew-plugin-fastnav (1.0.1-alpha, 1.0.0-alpha)
FastNav plugin for carew - bacardi55/carew-plugin-blogroll (1.0.1-alpha)
Blog roll plugin for carew - stof/doctrine-extensions-bundle (v1.1.0)
Integration of the gedmo/doctrine-extensions with Symfony2 - payment/isotope-payment-saferpay (2.0.1, 2.0.0)
saferpay payment modul for isotope ecommerce based on payment/saferpay - firesphere/silverstripe-newsmodule (1.4.2)
A ModelAdmin based newsmodule to prevent clutter in the SiteTree - stefano/stefano-htmlpurifier (0.0.1)
ZF2 Html Purifier - os/tools-bundle (2.3.6)
OS Tools Bundle for Symfony2 - mf2/mf2 (v0.1.16)
A pure (generic) microformats-2 parser - codeception/codeception (1.6.3)
BDD-style testing framework - fresh/doctrine-enum-bundle (v1.1)
Provides support of MySQL ENUM type for Doctrine in Symfony applications - barryvdh/laravel-ide-helper (v1.4.0)
Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion. - barryvdh/laravel-dompdf (v0.1.0)
A DOMPDF Wrapper for Laravel - florianwolters/component-geometry (v0.1.0)
Models and operations on objects related to geometry as a PHP component. - gxela/creditcard-number-generator (0.1.0)
Credit Card Number Generator - dg/mysql-check (v1.0.0)
Checks a MySQL database for orphaned records or invalid foreign keys, i.e., keys pointing to missing rows. - bear/package (0.8.3)
BEAR.Sunday application package - makesites/kisscms (1.7.0)
Content Management made Simple - justmyfreak/telkomid-oauth (0.1.0)
TelkomID oAuth2 library - zweifisch/zf (v0.5.0)
a micro php web/cli framework/router
Johannes Schlüter: PHP 5.5 is out, what's up with 5.4 and 5.3?
Johannes Schlüter has a new post for those wondering what's going to happen to PHP 5.3 and 5.4 now that PHP 5.5 has been released.
Yay, finally we released PHP 5.5, which is a new big release for PHP. In preparation for this I yesterday sent out a mail to the PHP core developers stating that the "PHP-5.3 BRANCH IS CLOSED NOW" [...] What this means for users of PHP is that they can continue using PHP 5.3 and when upgrades come they are very low risk of breaking anything (we always try not to break anything, but any person's bug might be another person's feature) so they should be applicable easily and applied fast.
So, PHP 5.3 users can upgrade in the 5.3.x series without having to worry too much about breakage. PHP 5.4 users should be able to easily upgrade to 5.5 without many issues too: "PHP 5.5 also mostly uses the same code as 5.4 with a few extra features."
Link: http://schlueters.de/blog/archives/173-PHP-5.5-is-out,-whats-up-with-5.4-and-5.3.html
7PHP.com: PHP Interview With Phil Sturgeon The Man Behind PyroCMS
On 7PHP.com Khayrattee Wassem has posted another interview with a member of the PHP community. This time it's with Phil Sturgeon, the developer behind the PyroCMS project.
In this edition I talked with Phil Sturgeon who is the founder of the CMS named as PyroCMS. He also wrote a book about it called "Catapult into PyroCMS". @Philsturgeon is very much involved in The PHP Community; he regularly participates in conferences, is a prominent voice and voting member of The PHP-Fig (aka the PHP Framework Interop Group, I also asked him a few questions about it) and he has been amongst the core contributors of PHP Frameworks like CodeIgniter (CI) and FuelPHP, although he is now opening his arms towards Laravel PHP framework (the PHP Framework for Web Artisans). On the professional scene, he is the Lead Engineer at Kapture.
They talk some about his background, how he got involved in the PHP community and some of his thoughts about PHP's growth during that time. He includes some advice to developers just getting their start (including some good resources) and some of the tools he uses in his development. There's a bit towards the end about Phil's involvement in the PHP-FIG and some of his involvement in conferences around the world.
Link: http://7php.com/php-interview-phil-sturgeon
Blake Gardner: Practical usage of PHP 5.5 generators: yield keyword
With the release of PHP 5.5 came a whole group of new features, including the "yield" keyword for better handling of values in iteration. Blake Gardner has posted a practical example of its use to his site today.
The key to understating the way the yield works verses a normal function is that rather than generating all of your data and returning the final array when it's done; you yield the value as it's generated. The state of the generator function is saved after you yield and then its state is restored when called again so the iteration can continue.
He shows a basic use of "yield" in a simple foreach of 1000000 values. In the first example, memory is exhausted and the second yields the values as they come, reducing the overhead significantly. The "range_yield" function returns them as the "for" loop generates them.
Link: http://blakegardner.co/2013/06/24/practical-usage-of-php-5-5-generators-yield-keyword
NetTuts.com: From Procedural to Object Oriented PHP
In this new tutorial from NetTuts.com, they want to help you make the move from procedural PHP to the world of Object-Oriented PHP. They opt for the mini-project approach and show you how to make a simple Google API client.
This tutorial was inspired by a speech given by Robert C. Martin that I watched a year or so ago. The main subject of his talk is about the possibility of picking The Last Programming Language. He addresses topics such as why should such a language exist? And what it should look like? However, if you read between the lines, there was another interesting idea that caught my attention: the limitations that each programming paradigm imposes upon on us programmers. So before we get into how we could go about converting a procedural based PHP app into an object oriented one, I want to cover a little bit of theory beforehand.
They start their example with a procedural approach, showing how to make the client and make a request for calendar information. They then work through the refactoring of the example, breaking it up into logical chunks (objects) and separating out some of the logic (like view versus logic). They talk about everything from basic OOP terms out to more complex ideas like SOLID.
Link: http://net.tutsplus.com/tutorials/php/from-procedural-to-object-oriented-php
2013年6月23日星期日
Community News: Packagist Latest Releases for 06.23.2013
- athletic/athletic (v0.1.3, v0.1.2)
PHP Benchmarking Framework - uecode/amazon-bundle (v0.3.0)
Symfony2 Uecode Amazon Bundle - kevintweber/ktw-database-menu-bundle (v0.1)
Symfony bundle for extending KnpMenuBundle to store menu items in a database. - dg/dibi (v2.1.0, v2.0.4)
Dibi is Database Abstraction Library for PHP 5. - dibi/dibi (v2.1.0, v2.0.4)
Dibi is Database Abstraction Library for PHP 5. - chilldev/view-helpers-bundle (0.1.5)
General-purpose view helpers for PHP templating engine from Chillout Development. - glorpen/assetic-compass-connector (v0.1.4)
Assetic Compass filter - titon/model (0.1.4, 0.1.3, 0.1.2)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - hediet/ant-build-php (v1.0.1, v1.0.0, v0.1.0)
Predefined build tasks for php projects using ant and composer. - titon/utility (0.8.4)
The Titon utility package provides convenience classes for basic tasks like validation, formatting, sanitization and more. - willskates/silex-skelington (1.3.0)
- anahkiasen/rocketeer (0.1.0)
Rocketeer provides a fast and easy to deploy your Laravel projects - acoustep/canvas (v0.1)
Simple GD Library class for resizing images - illarra/email-bundle (0.1.0)
Create beautiful emails in Symfony2 - bear/package (0.8.0)
BEAR.Sunday application package - manhim/phpevecentral (1.0.2)
A simple to use API library for Eve-Central. - kdyby/events (v1.1.1)
Events for Nette Framework - caouecs/laravel4-lang (0.2.1)
Languages for Laravel4 - orchestra/support (v2.0.3, v2.0.2)
Orchestra Platform 2 Support Component - ray/di (1.0.4)
Guice style annotation-driven dependency injection framework - hampel/twitter (0.4.0)
Wrapper for Twitter API using Guzzle - turnaev/dev-generator-tool-bundle (v1.1.5, v1.1.4)
Console tool bundle for Symfony 2.2+ - mf2/mf2 (v0.1.15)
A pure (generic) microformats-2 parser - orchestra/widget (v2.0.1)
Orchestra Platform 2 Widget Component - mozart/cache (v0.1.1)
Mozart Cache Providers - turnaev/mysql-workbench-schema-exporter (v1.0.7)
MySQL Workbench Schema Exporter - orchestra/resources (v2.0.1)
Orchestra Platform 2 Resources Component - enygma/expose (1.4)
An intrusion detection library based on PHPIDS - orchestra/memory (v2.0.1)
Orchestra Platform 2 Memory Component - orchestra/extension (v2.0.1)
Orchestra Platform 2 Extension Component - n98/magerun (1.70.6, 1.70.5, 1.70.4)
Tools for managing Magento projects and installations - orchestra/foundation (v2.0.3)
Orchestra Platform 2 Foundation Component - jeboehm/lampcp (0.6.0)
The linux apache mysql php control panel - zweifisch/match (v0.0.2)
pattern matching for php
2013年6月22日星期六
Community News: Packagist Latest Releases for 06.22.2013
- zweifisch/match (v0.0.1)
pattern matching for php - titon/model (0.1.1)
The Titon model package provides a basic database abstraction layer and an object relational mapper. Requires the PDO extension for database connections. - ekotechnology/balanced (0.2.7, 0.2.6)
Balanced Payments API client based on Guzzle HTTP Client - mandrill/mandrill (1.0.34, 1.0.33)
API client library for the Mandrill email as a service platform - itsgoingd/clockwork (v0.9.0)
Server-side component of Clockwork, a Chrome extension for PHP development - sergeytsalkov/meekrodb (v2.2.1)
The Simple PHP/MySQL Library - himedia/emr-monitoring (v1.5.0)
Command line tool for monitoring Amazon Elastic MapReduce (Amazon EMR) jobflows and analyze past jobflows. - dgilan/json_doc_validator (v1.0.0-beta)
Library for validation json-documents according some specific rules - mjohnson/admin (0.26.4, 0.26.3)
A CakePHP admin plugin. - michalsvec/nette-opauth (v0.4.2)
Opauth extension for Nette framework - sgrodzicki/pagespeed (1.0.3)
A PHP library to interact with the PageSpeed Insights API - sarasa/sarasa (v0.1.3, v0.1.2, v0.1.1, v0.1)
PHP Core Framework for PHP 5.3 - sarasa/core (v0.1.3, v0.1.1, v0.1)
PHP Core Framework for PHP 5.3 - zenstruck/cache-bundle (v1.2.0)
Provides a httpcache warmup command for Symfony2 - dantudor/stubber-process (v0.1)
Symfony Stub Server Process Manager - jenwachter/html-form (0.3)
A PHP library designed to make creating, validating, and maintaining forms easier. - sabre/vobject (3.0.0, 3.0.0-beta4)
The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects - alchemy/binary-driver (1.5.0)
A set of tools to build binary drivers - phraseanet/php-sdk (0.4.0)
A library to interact with Phraseanet API - fsi/datasource-bundle (v1.0.4)
FSi DataSource Bundle - fsi/datasource (v1.0.8)
FSi DataSource Component - evert/phpincludes (0.2.0)
PHPIncludes traverses your source and automatically creates an 'includes' file. - mardy-git/parse (v0.1.2, v0.1.1, v0.1.0)
Collection of parsers to parse different types of configuration files - payment/saferpay (2.0.3, 2.0.2, 2.0.1)
Saferpay payment service library - fillup/zfauthsaml (0.4.1, 0.4)
ZendAuthentication SAML adapter. Uses existing simpleSAMLphp install. - marapper/eyecon-datepicker-bundle (v1.0)
Eyecon Datepicker Bundle for Symfony2 - marapper/jquery-meiomask-bundle (v1.0)
MeioMask Bundle for Symfony2 - sammaye/mongoyii (1.3.1)
A Yii MongoDB ORM - mbischof/yii-framework (1.1.13)
Yii Web Programming Framework - adfab/game (0.2.11)
The Game module ! - phundament/p3widgets (0.11.9)
Widget Manager - mozart/cache (v0.1.0)
Mozart Cache Providers - fightbulc/cirrus (1.0.5)
Soundcloud API Reader Library to fetch data for users, tracks and playlists - adfab/core (0.2.2, 0.2.1)
Common features for all AdFab ZF2 dev - liip/imagine-bundle (v0.11.0)
This Bundle assists in imagine manipulation using the imagine library - payment/symfony-logger-bridge (1.0.1)
Bridge between Symfony lower/equal 2.1.X Logger and PSR0 LoggerInterface - payment/saferpay-bundle (1.0.3, 1.0.2)
Saferpay payment service library for symfony - jtreminio/vagrant-puppet-lamp (v2.0.6, v2.0.5, v2.0.4)
Non-PHP! Everything you need to get a LAMP-based Puppet/Vagrant VM up and running in seconds! - puphpet/vagrant-puppet-lamp (v2.0.6, v2.0.5, v2.0.4)
Non-PHP! Everything you need to get a LAMP-based Puppet/Vagrant VM up and running in seconds! - makesites/kisscms (1.6.0)
Content Management made Simple - noodlehaus/valid8r (0.0.3, 0.0.2)
a very small form data validation library