- Saran Chamling: Simple Chat Using WebSocket and PHP Socket
- Gary Sieling: Scraping Google Maps Search Results with Javascript and PHP
- Rob Allen: Configuring a ZF2 view helper before rendering
- Allan MacGregor: First steps on HHVM
- Snipe.net: Failing Well: Managing Risk in Web Applications
- Joseph Scott: Stateless CSRF Tokens
- Rob Allen: Using PHP's NumberFormatter to format currencies
- PHPMaster.com: PhalconPHP: Yet Another PHP Framework?
- DotKernel.com: Installing GeoIP extension in Zend Server 5.6 on Windows
- PHPClasses.org: 7 Reasons Why WordPress Made PHP Popular, not PHP Frameworks
- Community News: Latest PECL Releases for 07.30.2013
- William Durand: From STUPID to SOLID Code!
- Community News: Latest PEAR Releases for 07.29.2013
- Community News: Latest Releases from PHPClasses.org
- Phil Bennett: Revisiting: Benchmarking Dependency Injection Containers
2014年7月31日星期四
Site News: Blast from the Past - One Year Ago in PHP
Community News: Packagist Latest Releases for 07.31.2014
- teepluss/hmvc (1.0)
Laravel 4 HMVC. - teepluss/api (v1.0.2)
Laravel 4 Internal Request (HMVC) - winzou/state-machine (0.1.1)
A very lightweight yet powerful PHP state machine - werx/config (0.3.0)
Use environment-specific configuration files in your app. - sdboyer/gliph (0.1.7, 0.6.2)
A graph library for PHP. - karwana/messageformat (1.2.0)
- waspframework/waspframework (v4.0.0-beta)
A PHP full-stack framework, small, fast, simple, like a wasp. - jacobemerick/kmeans (1.0.0)
k-means clustering implemented in PHP - heyday/silverstripe-cacheinclude-manager (0.1.1, 0.1.0)
CacheInclude Manager - impactki/impactki-php-api (1.0.0)
PHP library for connecting to the ImpactKI API - shina/control-my-budget (0.7.2)
Control My Budget - elnebuloso/bundler (5.3.0, 5.2.2, 5.2.1, 5.2.0)
bundling files n' stuff - mikegrace/googleplaces (0.2.0)
Google Places API - elnebuloso/phing-commons (6.3.0)
phing commons build stack - buskamuza/product-community-edition (0.1.0-alpha93)
eCommerce Platform for Growth (Community Edition) - ivette/utils (v2.2.0)
Ivette Framework utilities - dominionenterprises/util (v1.6.0)
A collection of utility classes - thujohn/twitter (1.2.0)
Twitter API for Laravel 4 - laracasts/commander (1.3.8, 1.3.7, 1.3.6, 1.3.5, 1.3.4)
Commands and domain events in Laravel - threadmeup/slack-sdk (1.1.3)
Slack.com SDK - pubnub/pubnub (v3.6.0)
The Only Global Network For Real-Time Data -- PubNub! - koine/decorator (0.9.1)
Decorator for PHP Objects - league/geotools (0.4.0)
Geo-related tools PHP 5.3 library - mighty-code/phalcon-user-plugin-2 (0.4.1)
User plugin for Phalcon PHP framework - avisota/contao-message-element-event (2.0.1)
The event message element. - avisota/contao-message-element-news (2.0.1)
The news message element. - emacros/emacros (1.0.2)
The Extensible Macros Library for PHP - avisota/contao-message-element-article (2.0.1)
The article message element. - avisota/contao-core (2.0.2)
Avisota newslettersystem for contao - suitetea/modularlaravel (0.2.2)
Allows you to organize Laravel code modularly. - vu/amqp-carapace (0.1.0)
PHP Wrapper for AMQP - thunderwolf/tw-subscription-plugin (1.4.5)
symfony 1.x Thunderwolf Subscription plugin - elnebuloso/flex-random (2.0.2, 2.0.1)
multiple generators for random content - elnebuloso/flex-file-selector (1.1.2, 1.1.1)
selecting files by patternsets - takeatea/tea-theme-options (v1.4.0.1, v1.4.0)
- cubex/framework (0.1.1)
Cubex Framework - nqxcode/lucene-stemmer-en-ru (v1.0.1, v1.0.0)
ZendSearch morphology token filter for english and russian words. - adamgoose/commander (1.0.1)
Commands and Domain Events - c15k0/psfs (v0.2)
Php Simple Fast & Secure - paypal/sdk-core-php (v1.5.4)
PayPal Core SDK for PHP - openwebsolns/soter (0.9.1, 0.9.0)
PHP Input Validation Library - gaillard/mongo-lock (v2.0.0)
Distributed multi-reader lock using MongoDB - rollbar/rollbar (v0.9.7)
Monitors errors and exceptions and reports them to Rollbar - bkwld/croppa (3.3.1)
Image thumbnail creation through specially formatted URLs for Laravel - nqxcode/lucene-morphofilter-en-ru (v1.0)
ZendSearch Lucene morphology filter for english and russian words. - openwebsolns/owsession (0.9.1, 0.9.0)
OOP wrapper for PHP Sessions - backboneit/contao-selectri (2.0.2)
A selection widget for large structured option sets. - bit3/contao-doctrine-dbal (1.1.2)
Doctrine DBAL Bridge for Contao Open Source CMS - contao-community-alliance/dc-general (2.0.0-beta16)
Universal data container for Contao - winmillwill/settings_compile (2.1.0)
- entraigas/slimdb (v1.2.2)
Slim Database, a wrapper around pdo - trntv/yii2-starter-kit (1.0.1)
Yii 2 Starter Kit Application Template - koine/query-builder (0.9.5)
Query Builder - Making SQL composing easier - foovendor/module-one (0.1.1, 0.1.0)
N/A - elcodi/bamboo-store (v0.1.14)
Bamboo Project, an ecommerce built on Elcodi - adamlundrigan/ldc-user-profile (1.1.1, 1.1.0)
User profile extension for ZfcUser - drupal/tangler (0.1.3)
- umisoft/umi.framework (1.0.2)
UMI.Framework Version 1 - techdivision/servlet (0.6.3, 0.6.2)
Servlet package default implementation. - jb/yahooweatherapibundle (0.6, 0.5.2, 0.5.1)
Jb YahooWeatherApi Bundle for Symfony2 - elcodi/bamboo-fixtures (v0.1.14)
Bamboo Fixtures - alexisducastel/cloudy (1.0.0)
Cloud providers api abstraction - jwage/purl (v0.0.6)
URL Manipulation for PHP 5.3 - alexisducastel/vmwarephp (1.0.0)
Vmware vSphere bindings for PHP - echo-it/laravel-jsonapi (v1.2.2, v1.2.1)
- raoul2000/yii2-jcrop-widget (1.0.0)
This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop) - elcodi/elcodi (v0.1.14.1)
Barebones Ecommerce functionality for Symfony - elcodi/cart-coupon-bundle (v0.1.14.1)
Elcodi Cart-Coupon bridge component - thibaud-dauce/sql-view (v0.1)
Create SQL view - otak/maestro (1.0.37, 1.0.36, 1.0.35, 1.0.34, 1.0.33, 1.0.32, 1.0.31, 1.0.30)
Next-generation MVC Micro-Framework for PHP5.3+ - ministryofjustice/opg-core-public-domain-model (1.0.22.7, 1.0.22.6, 1.0.22.5, 1.0.22.4)
Domain model for the OPG Core project - openwebsolns/myorm (v0.9.1)
Sensible MySQL ORM - henderjon/chevron-kernel (v0.1.1)
a subset of tools for application development - contao-community-alliance/composer (0.13.2)
composer integration into the contao cms - block8/phpci (1.3.0)
Simple continuous integration for PHP projects. - duncan3dc/sql-class (1.3.2, 1.3.1)
A group of classes that provide a simple database abstraction layer, and an on disk caching facility - sjparkinson/static-review (1.1.2)
An extendable framework for version control hooks. - liip/imagine-bundle (1.0.4, 1.0.3)
This Bundle assists in imagine manipulation using the imagine library - phobetor/rabbitmq-supervisor-bundle (1.1.2)
Symfony 2 bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons - omerta-game-ltd/ponionoo (0.2, 0.1)
A php api for onionoo, it allows you to get all tor related information - esteit/catalol-api-client (1.3.1)
FPC client - marcojanssen/silex-rest-service-providers (0.6.0)
Package containing several services for silex/rest skeleton - gwtphp/gwtphp (1.0.0)
The Google Web Toolkit RPC protocol server-side application, implemented in PHP. Strives to be a drop-in replacement. - networking/init-cms-bundle (2.1.3)
This Bundle is a basic cms based on symfony - nicolas-brousse/twig-integrator-kit (v0.1.5)
A minimalist application to make integration with twig - voilab/tinycms (0.1.1)
Small textfile based CMS - apple/apn-push (v2.1.2)
Push notifications to Apple devices - om/events (v0.0.8)
Super simple event dispatching library for PHP - netzmacht/contao-bootstrap (0.2.4)
Provides modules, content elements and templates for integrating Bootstrap into Contao - metanet/form-handler (v1.0.1, v1.0.0)
Library for an easy handling of web based forms written in PHP. - m6web/redis-mock (v2.0.0)
Library providing a PHP mock for Redis - ice/form-bundle (1.11.4, 1.11.3)
Bundle providing forms and business logic for course registrations. - bit3/contao-theme-plus (4.4.1)
Theme+ for Contao OpenSource CMS - cargomedia/cm (1.56.5, 1.56.4)
- imsamurai/cakephp-monitoring-plugin (2.0.3)
Use it if you want to wrap model methods with cache - psecio/jwt (1.3)
A JWT (JSON Web Token) Encoding & Decoding library - fterenzani/lazypdo (1.0.1)
Just a bit of sugar in PDO - selmonal/imagemanager (1.1.0)
- ultractiv/lean (0.0.6.2)
The PHP framework for simple, REST API backend. It gets out of your way, so you can get your work done. - ryannielson/meta (1.1.0)
A package that makes it easy to add meta tags to your views. Includes easy Laravel integration. - trifs/di (v1.0.0)
A simple dependency injection container - opensoft/simple-serializer (1.0.6)
Simple Serializer - bycedric/inquiry (v0.2.4)
A Laravel URI syntax parser, designed for REST apis. - kunstmaan/node-bundle (v2.3.24)
All websites need pages(we call them nodes) but you probably don't want to spend too much time building them. Plus they should look pretty and contain the right content and that takes time. We make sure you have to spend less time managing your pages but still offer you flexibility so you can focus on more important tasks and don't have to worry about it. - 3fs/di (v1.0.0)
A simple dependency injection container - h3r2on/acs (1.0.0-alpha)
A package for inteacting with Appcelerator Cloud Services - tomaszdurka/mocka (0.8.0)
- wikimedia/assert (v0.1.0)
Provides runtime assertions - aboutyou/app-sdk (0.9.8)
ABOUT YOU app SDK - becklyn/page-tree-bundle (v1.4.1)
This bundle provides a simple implementation of a pagetree - claroline/core-bundle (3.1.4)
Claroline core bundle - itbz/fpdi (1.5.2-patch2)
Unofficial PSR-0 compliant version of the FPDI library - understand/understand-laravel (v0.0.4)
Laravel service provider for Understand.io - roberto/hello (v1.0.0)
composer test - aotd/mystem (3.0.1)
Yandex Mystem wrapper - fml/notification-bundle (v1.1, v1.0)
Library which help you to send notification via different channels wrapped to Symfony2 bundle - fml/notification (v1.3)
Library which help you to send notification via different channels - lemonweb/sisow-api (1.1.0)
Sisow API client library for PHP - reynholm/file-utils (v1.3.0)
A set of utils for working with files easily - genouest/blast-bundle (1.5)
This bundle allows you to run BLAST+ from a convenient web interface. - regeda/castel (0.2.0)
Castel is a fast Dependency Injection Container for PHP 5.3 - uestla/twigrid (4.0.2)
Experimental DataGrid for Nette Framework - qafoolabs/profiler (v0.5.5)
Simple library that wraps Xhprof profile collection and sends to Qafoo Profiler - elfet/deployer (v1.1.1)
Deployment Tool - vivait/common (2.0.1, 1.1.3)
Common interfaces used for Viva IT bundles - akeneo/batch-bundle (0.2.2)
Akeneo Batch Bundle - redaxmedia/gsp (2.2.3)
Grunt Survival Pack - fiv/parser (1.0.7)
Parser bundle - nelmio/api-doc-bundle (2.7.0)
Generates documentation for your REST API from annotations - ichthus-soft/bible_ref (1.1, 1.0)
- kunstmaan/pagepart-bundle (v2.3.12)
The KunstmaanPagePartBundle forms the basis of our content management framework. A page built using a composition of blocks names pageparts. These pageparts allow you to fully separate the data from the presentation so non-technical webmasters can manage the website. Every page can have it's own list of possible pageparts, and pageparts are easy to create for your specific project to allow for rapid development. - zfr/zfr-stripe (v1.10.0)
PHP library for interacting with the Stripe REST API - timesplinter/tsfw-session (v0.2.0)
A library to provide an OO interface for PHPs session handling - hieu-le/active (1.2.1)
The helper class for Laravel 4 applications to get active class base on current route - simpleapi/core (v0.6.4)
The core of SimpleAPI framework - liip/process-manager (1.0.3)
Provides a simple locking mechanism based on UNIX process id's written to a PID file. - yoozi/golem (1.0.4)
PHP development toolkit for Yoozi RD team. - yoozi/notification (1.0.4)
A simple library to wrap common notification transports, such as email, socket.io and etc. - kozz/collection (1.0.0)
Powerful Data Storage based on SplDoublyLinkedList - bgcc/sf-bootstrap-propel-admin-theme-plugin (1.0.1)
A bootstrap based admin generator theme for symfony 1 with propel 1.6+ - anlutro/l4-core (0.16.26)
Core L4 functionality. - martin-kozianka/contao-favoriten (0.3.4)
Favoriten - laraiba/resource (v0.0.3)
PHP library which provides Al Quran for your application - webpay/webpay (2.1.1)
Bindings of WebPay API - phpskeleton/component (1.0.0)
Base structure for a PHP Component
Master Zend Framework: Accessing ServiceManager Services in Controller Plugins
Matthew Setter has posted another new tutorial to his Master Zend Framework site today showing you how to access ServiceManager services in controller plugins. Controller plugins are a Zend Framework feature that allows certain events to trigger the plugin code during the lifetime of the controller.
I've seen some questions on Google+ and StackOverflow of late, regarding how to get access to the Zend Framework 2 database adapter, along with other ServiceManager-defined services, in a custom controller plugin. This type of setup can come in handy for a number of situations. You may want to access services such as caching, logging or databases and want to provide a simple interface for doing so. People seem really interested in how to do it, but how to get access to services from the ServiceManager doesn't seem to be as clear as it could be. Gladly, there's not much involved in actually doing it.
He shows you how to create a plugin for an existing module, creating the two needed classes and adding a new function to configure it. He starts with the plugin factory that can be used to generate an instance of the plugin. Next is the plugin class itself that extends the abstract plugin and controller plugin classes. The required database adapter is injected into it via a constructor injection. Finally, in the Module.php configuration, he creates a "getControllerPluginConfig" method that registers the new plugin and points to its class. A screencast is also provided showing the active development of the code.
Link: http://www.masterzendframework.com/servicemanager/accessing-servicemanager-services-controller-plugins
SitePoint PHP Blog: Using Guzzle with Twitter via Oauth
Continuing on with his series about using the Guzzle PHP HTTP library, Miguel Ibarra Romero is back with this new post showing how to connect your PHP application, via Guzzle, to the Twitter OAuth protected service.
In a previous article, we found out about Guzzle and how it can aid us in the task of establishing communication with third party APIs over HTTP. We used it to get the output of a random number generator and for basic interaction with Github's API. [...] While interacting with Github's API we discovered that it supports basic authentication (sending plain username/password). But what if the API we want to use just offers OAUTH authentication?
He shows how to use Guzzle's own OAuth subscriber to make a basic connection to the API. He walks you through the installation of the subscriber (via Composer) and an example of its use. He explains each part of the code, giving a little background on where it fits into the OAuth request and where to put your API secret and key to make the connection work. Finally, he includes the code to handle the callback once the OAuth request is successful, grabbing the token data and adding it to the user session.
Link: http://www.sitepoint.com/using-guzzle-twitter-via-oauth/
PHP Town Hall: Episode 29: Dont Mention PHP 6 v PHP 7
The PHP Town Hall podcast has released their latest episode, hosted by Phil Sturgeon and Ben Edmunds - Episode #29: Don't Mention PHP 6 v PHP 7. In this episode they're joined by guests Paul Jones and Daniel Lowrey.
Paul has recently been talking a lot about "Action Domain Responder" which is billed as a more representative replacement of the often mis-used "Model View Controller" architecture. Luckily he does a good job of ELI5 so we don't get too lost, and we talk a bit about how ADR helps with putting content negotiation in a logical place. Daniel then goes on to talk about a few awesome topics, including some of the OpenSSL changes in 5.6, and a HTTP server he is working on built entirely from PHP. It's async, non-blocking and web-scale.
They also talk about HTTP2, the Aura framework and the PSR-7 HTTP messaging proposal. You can listen to this latest episode either through the in-page audio player, by downloading the mp3 or you can watch the live recording from the Google+ session.
Link: http://phptownhall.com//blog/2014/07/30/episode-29-dont-mention-php-6-v-php-7/
Three Devs & A Maybe Podcast: The First Q&A Show with Justin DeLucia
The Three Devs & A Maybe podcast has posted their latest episode with guest Justin DeLucia. In this new episode they try out something different - a full, dedicated Q&A episode.
This week we have good friend of the show Justin DeLucia on to help host our first dedicated Q&A episode. Not only that, but Fraser is back! along with some crazy adventures that he discusses since his last time on the show. We have been fortunate to receive many questions throughout the past couple of weeks, and thought it would be good to release the answers as a dedicated show. Topics discussed include, breaking into the industry, the PDO vs. Mysqli debate, bespoke vs. off-the-shelf CMS debate and what to consider when building a Web API.
Other topics mentioned in this latest episode include: the Doctrine project, mutual recursion, Laravel Forge and Phil Sturgeon's book Build APIs You Won't Hate. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. If you enjoy the show, consider subscribing to their feed too.
Link: http://threedevsandamaybe.com/posts/the-first-qa-show-with-justin-delucia/
2014年7月30日星期三
Community News: Packagist Latest Releases for 07.30.2014
- dqneo/ethnam (v2.14.1, v2.14.0, v2.13.3, v2.13.2, v2.13.1)
web application framework. - tokenpost/caphpistrano (v0.5, v0.5beta)
Package to make deploy PHP applications. It's similar to capistrano (Ruby). - stripe/stripe-php (v1.17.0)
Stripe PHP Library - laracasts/commander (1.3.3, 1.3.2, 1.3.1, 1.3.0)
Commands and domain events in Laravel - emapper/configuration (1.0)
eMapper configuration traits - hampel/linode-laravel (2.0.0)
A Laravel 4 service provider and helper library for accessing Linode via PHP - kebir/universal-analytics (1.0.0-rc1)
Google Universal Analytics Tracker - rakit/keepinauth (v0.1.4)
just another simple auth library strongly inspired by zizaco/entrust and cartalyst/sentry - kebir/menu-generator (1.1)
Simple Menu Generator - evolution7/qa-tools (1.0.2)
A collection of Code Quality tools for CI integration, and various git hooks - adamgoose/commander (1.0.0)
Commands and Domain Events - demeanor/demeanor (0.4)
A testing framework/harness that supports Spec and XUnit style tests - konstantin-kuklin/handlersocket-bundle (0.02, 0.01)
Bundle for HandlerSocket support with Symfony - counterpart/counterpart (1.5.0)
A set of generic matchers -- for seeing if one value matches another - silverstripe/spellcheck (1.0.0)
Improves spellcheck support for SilverStripe CMS, including an implementation for HunSpell. - ghunti/laravel-base (v0.1)
Some base classes and overrides for the Laravel 4 framework - kop/yii2-scroll-pager (v2.1.2)
Infinite AJAX scrolling for Yii2 ListView widget - anahita/anahita (3.0.4)
Anahita Social Networking Platform - emapper/emapper (3.1)
The Extensible Data Mapper library for PHP - konstantin-kuklin/handlersocket-library (0.02, 0.01)
HandlerSocket protocol wrapper on native PHP - iron-io/iron_core (0.2.0)
Collection of common functions for all iron.io client libraries - mvanbaak/httprequest (v1.0.1, v1.0.0)
PHP library for making http requests - echo511/gaufrette (v1.0)
- buskamuza/product-community-edition (0.1.0-alpha92, 0.1.0-alpha91)
eCommerce Platform for Growth (Community Edition) - daverandom/addr (v0.2.3)
Asynchronous DNS resolver using Alert - fol/fol (v3.1.0)
PHP framework - fol/core (v3.1.1, v3.1.0)
The core of FOL framework - platinumpixs/aws-symfony2-bundle (v1.0.0)
A simple Symfony 2 bundle for including the AWS SDK for PHP. - storage-factory/storage-factory (2.5.0)
Factory class that creates either File Storage or Directory Storage PHP 5.2.17 and up - mic2100/hmac (v2.2.2, v2.2.1, v2.2.0)
A keyed-Hash Message Authentication Code (HMAC). Used for application to application authentication. - dannyvankooten/mailchimp-for-wordpress (2.1)
Easily add sign-up methods for your MailChimp lists to your WordPress site using this WP plugin - raphhh/pinguin (1.0.0)
A command line interface for Doctrine - drupal/panopoly-framework (1.0.0-alpha)
- gaillard/mongo-lock (v1.0.1, v1.0.0)
Distributed multi-reader lock using MongoDB - silinternational/google-api-php-client-mock (0.2)
Attempting to create an intelligent mock of the Google API PHP Client for unit and functional testing. - ramverk/model (0.1.2, 0.1.1, 0.1.0)
Ramverk Model Component - form-manager/form-manager (v3.7.0)
PHP-HTML form manager - docdigital/pdf-manager (v1.0.1)
Pdf Management component to merge, split PDFs - ramverk/dbal (0.1.5)
Ramverk DBAL Component - docdigital/pdf-manager-bundle (v1.0.3)
Pdf Management Bundle to merge, split PDFs - psi/redirect4ward (2.1.0)
Redirect to internal/external pages or to the most similar one. - mamuz/mamuz-blog (1.0.0)
Provides simple product owner blog feature for ZF2 with Doctrine - devhelp/procedure (1.0)
introduces mechanism that allows you to define steps with its arguments that are going to be interpreted in order they are defined in the procedure - condenast/pangea (1.7.023, 1.7.022)
- dalmp/dalmp (v3.0.3)
Database Abstraction Layer for MySQL using PHP - mighty-code/phalcon-user-plugin-2 (0.4.0)
User plugin for Phalcon PHP framework - ee/tellyourstory-bundle (0.2.2)
Symfony Bundle for building applications that allow its users to share theirs stories. - entraigas/slimdb (v1.2.1)
Slim Database, a wrapper around pdo - kisma/kisma (0.2.52)
PHP Utility Belt - csbill/csbill (0.2.0)
General Billing Application - josegonzalez/cakephp-upload (1.1.1)
CakePHP plugin to handle file uploading sans ridiculous automagic - gaillard/gridfs-update (v1.0.0)
Library to make mongo gridfs in-place updates - rhetina/mozart (v0.7.0)
The framework that brings the awesomeness of Symfony into Wordpress - infi-nl/laravel-feature-toggle (1.0.1)
Laravel 4 package wrapping joshuaestes/feature-toggle - fabpot/php-cs-fixer (v0.5.5)
A script to automatically fix Symfony Coding Standard - techdivision/appserver (0.9.2)
Thread based PHP daemon to implement stuff like message queues. - codedazur/social (V0.1.51, V0.1.5, V0.1.4)
- rwillians/betasms (v0.1.3, v0.1.2, v0.1.1)
PHP SDK for BetaSMS' HTTP Client API. - bugbuster/integrity_check (3.4.0)
Contao CMS integrity check for some files - mmoreram/controller-extra-bundle (v1.1.4)
Some specific controller features - instaphp/instaphp (2.0.10)
A library for accessing Instagram's API (v2) - rwillians/sms-basics (v0.7)
SMS-related PHP basic objects - laraiba/resource (v0.0.2, v0.0.1)
PHP library which provides Al Quran for your application - reynholm/file-utils (v1.2.0, v1.1.0)
A set of utils for working with files easily - imsamurai/cakephp-monitoring-plugin (2.0.2, 2.0.1, 2.0.0)
Use it if you want to wrap model methods with cache - hackpack/hackunit (v0.3.1)
xUnit library for hacklang written in strict mode - akeneo/batch-bundle (0.2.1)
Akeneo Batch Bundle - module/module-one (0.1.0)
N/A - henderjon/chevron-kernel (v0.1.0)
a subset of tools for application development - clubmaster/formextra (1.20, 1.19)
ClubMaster form extra. - avisota/contao-message-renderer-mailchimp (2.0.3)
Renderer that use MailChimp templates. - zofe/rapyd (1.3.17)
crud widgets for laravel 4, to make an admin in few lines of code - fluentdom/fluentdom (4.1.5)
A fluent api for the php dom extension. - henderjon/chevron-widgets (v2.2.1, v2.2.0)
a simple view/template system - block8/b8framework (1.1.8)
Simple, lightweight framework for high-throughput applications - zeecoder/capifony-deploy-info-bundle (v0.1.6)
- phobetor/rabbitmq-supervisor-bundle (1.1.1, 1.1.0)
Symfony 2 bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons - netzmacht/contao-form-helper (0.3.1)
Library for supporting customized Contao form rendering - netzmacht/contao-bootstrap (0.2.3)
Provides modules, content elements and templates for integrating Bootstrap into Contao - contao-bootstrap/form (1.0.0-beta3)
Navigation templates supporting bootstrap dropdown navigation - anh/content-bundle (v2.1.0)
Content bundle - ptrofimov/beanstalk_console (1.5.1)
Admin console for Beanstalk queue server - biniweb/form (0.1.6)
Easy form building, validation and follow-up callbacks - mnapoli/php-di (4.2.0)
PHP-DI is a Container that makes Dependency Injection as practical as possible in PHP - henderjon/chevron-containers (v3.1.1)
an implementation of the registry pattern for fun and profit - tinymce/tinymce (4.1.3)
Web based JavaScript HTML WYSIWYG editor control. - echo-it/laravel-jsonapi (v1.2, v1.1.3)
- kasonyang/hitar (v0.1.5)
ä¸'个基于Doctrine DBALçš„ORM框架 - majes/core-bundle (v1.20.1)
Majes framework core bundle - majes/teel-framework (v1.20.1)
The "MajeS'teel Edition" distribution - fiv/parser (1.0.6)
Parser bundle - kasonyang/hiano (v0.1.4)
- dericofilho/php.fmt (3.1.2, 3.1.1)
Code Formatter for PHP - CS - hostnet/entity-plugin-lib (1.5.5)
Installer for all the Hostnet Doctrine entity libraries - zeecoder/route-list-bundle (v0.1.0)
- kunstmaan/adminlist-bundle (v2.3.15)
Every website contains several lists of content ranging from articles on a blog, to drop down values. The KunstlaanAdminListBundles takes CRUD a step further by supplying filtering, exports to csv and editing capabilities to these content entities. - techdivision/server (0.1.2)
Multithreaded server daemon framework - konstantin-kuklin/handler-socket-library (0.02)
HandlerSocket protocol wrapper on native PHP - konstantin-kuklin/stream-library (0.02)
Wrapper for stream functions - codeception/phpbuiltinserver (v1.1.5)
PhpBuiltinServer extension for Codeception - edvinaskrucas/notification (3.0.0)
Package for Laravel for helping to manage flash / instant notifications / messages. - koala-framework/library-extjs2 (v2.3.0-p1)
ExtJS JavaScript Library - mipxtx/threadunit (0.2)
multithread wrapper for phpunit - cliffparnitzky/task-center (1.0.1)
Provides a task center which allows you to create tasks, assign them to other users and track their progress. - knplabs/friendly-contexts (v0.5.3)
Some BEHAT contexts - adamlundrigan/ldc-zend-form-cti (0.3.0)
ZendFormCollection meets Class Table Inheritance - jimphle/messaging (v0.4.3)
Jimdo PHP library extraction of messaging component - litgroup/sdk (v0.2.0)
Collection of components for PHP-development. - maniaplanet/dedicated-manager (2.1)
ManiaPlanet dedicated-manager - novaway/filemanagementbundle (2.0.1)
Bundle for File and Image management in Symfony 2 - php-opencloud/openstack (v0.0.1)
- data-values/value-view (0.6.8)
Provides JS widgets to edit values defined by the DataValues library - embed/embed (v1.5.9)
PHP library to retrieve page info using oembed, opengraph, etc - fylhan/posibrain (v0.2)
A re-usable tchatbot PHP implementation to never be alone again. Hum, wait... What? - appserver-io/build (0.1.5)
Generic build- and deployment targets - typo3/tmdb (0.5.5, 0.5.4)
This package allow the usage of TMDB database. You need a personal API key to use the API. Please check the condition on the TMDB website. - ck/php-marcspec (v1.0)
PHP based MARCspec parser and validator - m1ke/git-php-lint (1.0.0)
Easily lint PHP files when commiting - intaro/pinba-bundle (0.4.1)
Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server - kunstmaan/dashboard-bundle (v2.3.11)
The Kunstmaan Dashboard bundle adds a system to build advanced dashboards in the admin area of the CMS. Currently it features a large Google Analytics integration. - treehouselabs/queue (v0.0.2)
Queue - elliotchance/concise (v1.1, v1.0.1)
Concise is test framework for using plain English and minimal code, built on PHPUnit. - simpleapi/core (v0.6.3, v0.6.2, v0.6.1, v0.6.0)
The core of SimpleAPI framework - kalnoy/cruddy (v0.3.0)
Backend interface for handling CRUD operations on your Laravel Eloquent models. - eazy/cache (0.1.2)
The Eazy Cache Component - hampel/linode (3.0.0)
Wrapper for Linode API using Guzzle - earlhickey/pg-selligent (1.0)
ZF2 module for Selligent Individual API - appointedd/appointedd-php (0.0.4)
- fenom/fenom (2.2.1)
Fenom - excellent template engine for PHP - creativesoftworks/behat-wiremock-context-extension (v1.0.1)
A Behat Extension that makes use of Wiremock as a test double for API calls - willdurand/js-translation-bundle (v2.1.1)
A pretty nice way to expose your translation messages to your JavaScript. - goetas/goetas-xsd-reader (0.1.1-beta, 0.1.2-beta)
Read XSD into PHP - vivait/bootstrap-bundle (1.1.4)
Bootstrap Common Bundle - zfr/zfr-stripe (v1.9.0)
PHP library for interacting with the Stripe REST API - giggsey/libphonenumber-for-php (6.2.1)
Unofficial PHP Port of Google's libphonenumber - cargomedia/cm (1.56.2)
- cornford/setter (v1.2.3, v1.2.2)
An easy way to intergrate Database Settings with Laravel. - bariew/yii2-event-component (1.3.0-beta)
Attaches events to all models - sammaye/mongoyii (7.0.0)
A Yii MongoDB ORM - teepluss/up2 (v0.3)
UP2 is a file uploader with polymorphic relations. - seph/cqrs (0.0.1)
- syringe/dependency-injection (1.4.4)
Syringe Dependency Injection Component
Voices of the ElePHPant: Interview with Joel Clermont
The Voices of the ElePHPant podcast has posted their latest episode in their series of community interviews. This time it's with Joel Clermont, an organizer of the Milwaukee PHP User Group.
They talk some about a newsletter Joelputs out "learning how to learn" based around a conference talk he's proposed/given. Joel also mentions the book he's working on following the same topic. They also talk some about his involvement in the Milwaukee user group.
You can listen to this latest episode either through the in-page audio player or by downloading the mp3 directly. If you like what you hear, consider subscribing to their feed too.
Link: http://voicesoftheelephpant.com/2014/07/29/interview-with-joel-clermont
SitePoint PHP Blog: Understanding OpCache
On the SitePoint PHP blog there's a new tutorial posted helping you understand OpCache, the caching engine built into PHP versions 5.5 and above. This cache isn't designed to cache data or other content, though. An OpCache caches "opcodes" when a script is executed.
PHP in version 5.5 comes with a caching engine built-in - OpCache - which stores precompiled script bytecode in the memory. If you're familiar with APC or Xcache, you will already know how such engines work. As each PHP script is being compiled at runtime, a part of the execution time gets used for transforming the human readable code into code that can be understood by the machine. A bytecode cache engine like OpCache, APC or Xcache does it only once - during the first execution of a specific PHP file. Then the precompiled script is being stored in memory, which should lead to performance boosts in your PHP applications.
The remainder of the article is a series of answers to some common questions about using the cache, what it will do for your applications and some tools to use for tuning and status updates:
- Is OpCache worth installing at all? What speed boost can I expect?
- I already use APC cache. Should I migrate to OpCache?
- How to check if OpCache is actually caching my files?
- Is there any framework-specific config that I should set?
- I keep my app config in a PHP file. Can I prevent it from being cached?
- How can I run both a development and a production environment on a single server where OpCache is enabled?
Link: http://www.sitepoint.com/understanding-opcache/
Community News: PHP Specification in Development
In a recent message to the PHP internals mailing list Sara Golemon has announced the development of a PHP specification, a document formally defining the interfaces and structure of the functionality of the language. The effort is being spearheaded by a group at Facebook.
We (As in PHP) have been talking about making a spec for the PHP language for a LONG time. With PHPNG around the corner, the need for a formal spec is even more important so that we can reliably ensure that PHP.Next matches PHP 5.6's behavior as much as possible. Meanwhile, other implementations of PHP (like HHVM) should be as spec compliant as possible so that we don't see the language bifurcate. To that end, we (as in Facebook), have been putting together a formal language spec for PHP (using PHP 5.6 as the source of truth) along with an additional conformance test suite (which compliments Zend/tests).
An initial version (a "sneak peek") has already been posted providing a great start to the effort. There's already been a lot of support for the project in the community and some of the concerns around workflow and maintenance are already starting to be addressed.
Link: http://grokbase.com/t/php/php-internals/147p423vvz/php-language-specification
Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM
The Kinsta.com blog has a new post with the results of some benchmarking they've done around WordPress comparing PHP 5.5, PHP 5.6 (PHPNG) and HHVM in response time (well, time taken for the request).
If you remember we wrote an article a good couple of months ago when WordPress 3.9 came out that HHVM was fully supported beginning with that release, and we were all happy about it. The initial benchmark results showed HHVM to be far more superior than the Zend engine that's currently powering all PHP builds.
[...] Obviously you have to compromise based on your (or rather your sites') needs but is it worth it? How much of a performance gain can you expect by switching to HHVM? [...] Today I finally took the time to set up a test environment and do some tests to compare a couple of different builds with a fresh out of the box WordPress install and one that has a bunch of content added plus runs WooCommerce!
The testing was all done locally on virtual machines (using Vagrant setups) and two different kinds of test WordPress installations. They share the results in the post, showing the differences between the HHVM installations and the plain PHP ones. The results also show the differences between having the opcode cache on and off. Curious to see how it would perform outside of a local system, they also pushed the same configurations out to a DigitalOcean instance with some slightly different results.
Link: https://kinsta.com/blog/real-world-wordpress-benchmarks-with-php5-5-php5-6-php-ng-and-hhvm/
2014年7月29日星期二
Community News: Latest PECL Releases for 07.29.2014
- SeasLog 1.0.0
- First version for pecl.net - binpack 1.0.0
- first release - sync 1.0.1
- Fixed Reader-Writer objects.
- Removed a lead from package maintainers list. - yac 0.9.1
- Try to fix windows build - yac 0.9.0
- first release - ibm_db2 1.9.6
Fixed: Fetching of mixed character data when the application code page different from database code page
Fixed: db2-bind-param with INOUT LOB parameters
Enhanced: Enable iSeries system naming mode from LUW to iSeries
Enhanced: Clear global error state at end of request
Community News: Packagist Latest Releases for 07.29.2014
- adamgoose/prismic-io (v1.3)
Prismic.io for Laravel - naonaox1126/vizualizer (v1.3.6, v1.3.5, v1.3.4, v1.3.3)
Visual Framework in PHP - cakephp/debug_kit (2.2.4)
CakePHP Debug Kit - ubc/ctlt-coding-standard (1.0)
CTLT PHP CodeSniffer Coding Standard - d3catalyst/exchangerate (1.0.1)
Package currency exchange between two currencies - julien-boudry/condorcet (v0.13.2, v0.13.1)
Condorcet is a PHP Class to computing many Condorcet voting methods - jacopo/laravel-authentication-acl (1.1.7)
Laravel authentication and ACL package with a cool admin panel - d3catalyst/l4-geoip (1.0.1)
Laravel 4 Library for detecting geogpraphical location info. - whitecap/ioc (2.9.11, 0.2.11, 0.2.10)
An Inversion of Control library that attempts to respect the Law Of Demeter and relies on as little configuration as possible. - jlinn/stripe-api-php (v1.1.0)
A PHP client library for Stripe's REST API - mighty-code/phalcon-user-plugin-2 (0.3.0, 0.2.7, 0.2.6, 0.2.5)
User plugin for Phalcon PHP framework - clue/soap-react (v0.1.0)
Simple, async SOAP webservice client library - hautelook/templated-uri-bundle (2.0.0)
Symfony2 Bundle that provides a RFC-6570 compatible router and URL Generator. - dts/ebay-sdk-business-policies-management (0.1.2)
An eBay SDK for PHP. Use the eBay Business Policies Management API in your PHP projects. - shina/control-my-budget (0.7.1, 0.7.0)
Control My Budget - easyframework/collections (v2.1.1, v2.1.0)
Easy Framework Collection Component - dts/ebay-sdk-finding (0.1.2)
An eBay SDK for PHP. Use the eBay Finding API in your PHP projects. - duncan3dc/sql-class (1.3.0)
A group of classes that provide a simple database abstraction layer, and an on disk caching facility - kartik-v/bootstrap-fileinput (v1.9.0)
An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features. - condenast/pangea (1.7.021, 1.7.020, 1.7.019, 1.7.018, 1.7.017)
- dts/ebay-sdk-trading (0.3.1, 0.3.0, 0.2.0)
An eBay SDK for PHP. Use the eBay Trading API in your PHP projects. - lavender/lavender (v0.7.2, v0.7.1)
jade-esque templates for PHP 5.3 - duncan3dc/helpers (1.2.4, 1.2.3)
A collection of useful helper functions - koine/decorator (0.9.0)
Decorator for PHP Objects - bkwld/library (2.10.2)
Misc PHP code - parcelgo/microsoft-translator-service-provider (v0.5.0)
Silex service provider for using the Microsoft Translator V2 API - sanpi/twitter-bootstrap-installer (1.2.0)
Composer post-install helper for Twitter bootstrap - leon-b/sextant (0.0.1)
Get a list of laravel routes in your browser - parcelgo/microsoft-translator (v0.5.0)
Library for making calls to the Microsoft Translator V2 API - shopsys/syscart (0.0.1)
System cart functionality for Shopsys - rmhdev/cercanias (v0.2.0)
Retrieve Renfe's CercanÃas information easily - ryannielson/prez (1.0.3, 1.0.2)
Easily create presenters for your objects. - geekcache/geekcache (0.1.0-beta)
A wrapper for Memcached with tags, soft invalidation, memoization, and regeneration through callbacks - sabre/dav (1.7.13)
WebDAV Framework for PHP - chippyash/strong-type (1.0.8, 1.0.7)
Strong type support. For when you absolutely want to know what you are getting - jeremykendall/php-domain-parser (1.4.6)
Public Suffix List based URL parsing implemented in PHP. - dcarbone/helpers (6.1.0)
Some simple helper classes for PHP - mediawiki/universal-language-selector (2014.07)
The primary aim is to allow users to select a language and configure its support in an easy way. Main features are language selection, input methods and web fonts. - mediawiki/translate (2014.07)
The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software - mediawiki/babel (2014.07)
Users can easily indicate their language proficiency on their user page - cubex/framework (0.1.0)
Cubex Framework - phobetor/rabbitmq-supervisor-bundle (1.0.1, 1.0.0)
Symfony 2 bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons - rhumsaa/uuid (2.7.2)
A PHP 5.3+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID). - valhalla/valhalla-core-utils-lib (1.1.2)
Valhalla Core Utilities Library - anchour/bedrock (1.3.2)
A modern WordPress stack - packaged/helpers (v0.2.0)
- mike-roetgers/dependency-graph (0.4.0)
Dependency graph for PHP - isdarka/model (1.0)
Model From Zend Framework 2 - appserver-io/build (0.1.4)
Generic build- and deployment targets - pjdietz/wellrested (v2.0.2, v2.0.1)
Simple PHP Library for RESTful APIs - userapp/userapp (1.2.1)
PHP client library for UserApp. - apple/apn-push (v2.1.1)
Push notifications to Apple devices - ministryofjustice/opg-core-public-domain-model (1.0.22.3)
Domain model for the OPG Core project - mipxtx/threadunit (0.1.2)
multithread wrapper for phpunit - bhoeting/navigation-builder (1.3.1)
A Blade helper to easily create Navigation HTML. - phiber/phiber (v0.7.1)
PHP's easy MVC - v-technologies/simpl-es (0.3.2)
ElasticSearch PHP API. Simpler. Really. - mathiasverraes/classfunctions (1.1.0)
Functions to manipulate class names - algolia/algoliasearch-client-php (1.3.3)
Algolia Search API Client for PHP - ipunkt/laravel-route-cache (1.0.3)
Simple Cache for Laravel Routes sending 304 and cached static content - majes/teel-framework (v1.20.0, 1.2)
The "MajeS'teel Edition" distribution - biniweb/form (0.1.5)
Easy form building, validation and follow-up callbacks - anh/symfony-skeleton (v2.5.2)
Symfony skeleton - xapon/yii2-environment (v1.0.0)
Environment class for Yii2, used to set configuration for console and web apps depending on the server environment. - wisembly/jsgettext (0.4.6, 0.4.5, 0.4.4)
Javascript poEdit parser written in PHP - litgroup/wamp-bundle (v0.4.0)
WAMP Application Server for Symfony2. - voceconnect/wp-cache-bucket (1.1.3)
Allows cache items to be tied to a single validation key - liip/monitor-bundle (2.0.3)
Liip Monitor Bundle - tilleuls/ymlp-bundle (v1.0.0)
Integrates YMLP API for Symfony2 - rmrevin/yii2-minify-view (1.2.1, 1.2.0)
Yii2 view componen with minification css & js - chippyash/math-type-calculator (1.0.1)
Calculators for the chippyash/strong-type numeric types - cerbero/workflow (1.1.1)
Speed up the workflow to add new features to your Laravel projects. - flint/tacker (1.1.0)
Easy configuration based on Symfony Config - syringe/dependency-injection (1.4.3)
Syringe Dependency Injection Component - arkanmgerges/multi-tier-architecture (1.4.0)
Multi-Tier Architecture core used for building applications - indatus/dispatcher (v1.4)
Schedule your artisan commands within your application - otak/maestro (1.0.30-alpha, 1.0.29, 1.0.28)
Next-generation MVC Micro-Framework for PHP5.3+ - intaro/rule-engine-bundle (v0.1.1)
The engine for the rules evaluation based on the EventDispatcher and ExpressionLanguage components - sulu/category-bundle (0.2.1)
Adds category functionality to sulu - sulu/admin-bundle (0.5.1)
Symfony bundle that provides administration functionality - majes/cms-bundle (1.2, v1.20.0)
Majes framework cms bundle - sulu/content-bundle (0.5.1)
The bundle responsible for content management in Sulu - leonjza/php-nessus-ng (0.4)
PHP wrapper functions for interfacing with the Nessus API - majes/core-bundle (1.2, v1.20.0)
Majes framework core bundle - creativesoftworks/behat-wiremock-context-extension (v1.0)
A Behat Extension that makes use of Wiremock as a test double for API calls - m6web/aws-bundle (v1.3.0)
Bundle Client AWS - lotaris/rox-client-phpunit (v0.1.1)
PHPUnit client for submitting test results to ROX Center. - ramverk/dbal (0.1.4)
Ramverk DBAL Component - anlutro/l4-core (0.16.25, 0.16.24, 0.16.23)
Core L4 functionality. - kedrigern/phpio (v0.7, v0.6)
PHP class for batch file processing. You can read, write, delete, move. All in pretty object. - experience/laracart (0.3.0)
Laravel shopping cart, with support for multiple product types, guest carts, and more. - wikibase/data-model-serialization (1.0.3)
Serializers and deserializers for the Wikibase DataModel - anlutro/menu (0.5.0)
Dynamic menu builder. - simsite/project (v0.9)
SimSite Project Skeleton - trsteel/ckeditor-bundle (v1.5.0)
Symfony2 bundle for easy integration of the CKEditor WYSIWYG - contao-bootstrap/core (1.0.0-beta2)
Core of Contao Bootstrap extension - jakubsacha/adminlte (1.0.5)
Syntara Admin panel (its based on Laravel 4) in nice theme. Package contains also small additional bugfixes and UI improvements of Syntara. - peakfijn/get-some-rest (v0.4.4)
A package to give your Laravel project some REST. - dailymotion/sdk (1.5.4)
Dailymotion PHP SDK - kitpages/data-grid-bundle (v2.1.1)
Symfony DataGridBundle - contao-bootstrap/layout (1.0.0-beta2)
Bootstrap layout integration in Contao - contao-bootstrap/form (1.0.0-beta2)
Navigation templates supporting bootstrap dropdown navigation - oprokidnev/goalio-remember-me-doctrine-orm (1.0.0)
- netzmacht/contao-form-helper (0.3.0)
Library for supporting customized Contao form rendering - liip/rmt (1.1.0)
Release Managment Tool: a handy tool to help releasing new version of your software - bycedric/inquiry (v0.2.3, v0.2.2)
A Laravel URI syntax parser, designed for REST apis. - projectcleverweb/php-uri (1.0.0-RC2)
A PHP library for working with URI's. Requires PHP 5.3.7 or later. Replaces and extends PHP's parse_url(). - sammaye/mongoyii (6.2.0)
A Yii MongoDB ORM - nekman/laravel-model-logger (1.0.1)
Create a log entry every time a model has been inserted, updated or deleted - simsite/simsite (v0.9)
SimSite Core - ipunkt/laravel-notify (1.0.0)
Provides an ready to use object oriented notification interface for laravel 4, including working example javascript and css for Twitter Bootstrap 3 - asm89/stack-cors (0.2.1)
Cross-origin resource sharing library and stack middleware - rampage-php/framework (1.0.0)
Rampage PHP Framework based on Zend Framework 2 - masterminds/html5 (2.0.0)
An HTML5 parser and serializer. - edvinaskrucas/notification (2.1.0)
Package for Laravel for helping to manage flash / instant notifications / messages. - rahul/socialconnect (0.3)
A Social media multi channel connector for TYPO3 Neos - kasonyang/hitar (v0.1.4)
ä¸'个基于Doctrine DBALçš„ORM框架 - oonix/mongo-rbac (v0.1.1)
Core MongoDB classes extended to use PhpRbac for fine-grained access control. - anlutro/curl (0.6.1)
Simple OOP cURL wrapper. - xsolla/xsolla-sdk-php (v1.1.0)
Xsolla SDK for PHP. Xsolla is the authorized reseller and merchant providing e-commerce services for online games.
Sameer Borate: Downloading Gmail attachments in PHP - an update
Sameer Borate has posted an update to a previous post of his about downloading attachments in PHP. In this new post he updates the script to remove any other dependencies other than the IMAP PHP extension.
As mentioned in the earlier post, automatically extracting attachments from Gmail can be important for reasons where you need to process the attached files periodically with a CRON job or need to process the files programmatically. Also it can be useful for automatically archiving important attachments. [The code in this post] is a simple proof-of-concept plain PHP code, devoid of any object-oriented features that extracts attachments from your Gmail account.
The example code makes a request to the Gmail IMAP servers with the given username and password, grabs the first set of emails, parses their attachments to pull them down to the local host. He also includes some searching capability to locate ones only matching certain criteria. A list of the allowed search keywords is also included. He finishes the post with a look at using READONLY mode and fetching the email headers.
Link: http://www.codediesel.com/php/downloading-gmail-attachments-in-php-an-update/
Expert Developer: Install PHP CodeSniffer on Windows Machine
On the Expert Developer site there's a new tutorial showing you how to get the PHP CodeSniffer tool up and working on a Windows installation. PHP CodeSniffer provides functionality to enforce standards and best practices in your application's development (providing code quality).
In this article we will focus on improving Code Quality. Very first step towards improving code quality is to maintain coding standards across developers. [...] Here we will talk about PHP CodeSniffer, which help us to maintain coding standard across multiple developer. Dealing with CodeSniffer is much easier: create rule set, validate your file against your rule set and get the result immediately. It will immediately show how many mistakes you have made in terms of following coding standards and eventually all developer will start coding as per coding standards you have defined.
There's two main parts to the article: first is getting PEAR installed (a package manager for PHP) and then using it to install CodeSniffer. Complete instructions and commands are included as well as a few screenshots along the way.
Link: http://www.xpertdeveloper.com/2014/07/install-php-codesniffer-on-windows-machine/
NetTuts.com: Understanding and Working with Data in WordPress
On NetTuts.com there's a new post for those new to WordPress (or just wanting to figure out more about the internals of the tool) showing how some of the data is structured and how to work with it.
Most WordPress users never come into direct contact with the database and may not even be aware that it's constantly working to populate their site. When WordPress serves up any kind of page, be that the home page, a single post or page or an archive, it's accessing the database to bring up content that editors and administrators have added to the site. In this series of tutorials I'll look in detail at different aspects of the WordPress database.
This post is the first in the series and provides an overview of the database and what kinds of information each one contains. They talk about content types and provide the table structure and relations in a handy graphical form (an ERD). They then go through each of the tables and describe what the data is including link tables, joining the content in different places.
Link: http://code.tutsplus.com/tutorials/understanding-and-working-with-data-in-wordpress--cms-20567
PHPBuilder.com: Creating Real Time Applications with PHP and WebSockets
On PHPBuilder.com today there's a new tutorial introducing you to the combination of PHP and WebSockets to make real-time requests to fetch data in your application.
This article will explore the main PHP libraries used to create real time, bi-directional applications between clients and servers over WebSockets. WebSocket is full-duplex client/server communication over TCP. It is also a new feature available in browsers as a part of the HTML5 specs that allows JavaScript clients to open bi-directional socket connections to a server. [...] WebSocket connections are basically TCP socket connections that following the WebSocket rules to communicate. The WebSocket Protocol is an independent TCP-based protocol.
They introduce some of the basic concepts behind WebSockets (including an example URL) and show how to use the PHPWebSockets library to handle some sample requests. They also include some basic JavaScript to make the request to the backend PHP script and send or fetch content on the server. They also show you how to implement a simple chat server using a few other libraries like Ratchet, Elephpant.io and Socket.io.
Link: http://www.phpbuilder.com/articles/application-architecture/optimization/creating-real-time-applications-with-php-and-websockets.html
2014年7月28日星期一
Community News: Packagist Latest Releases for 07.28.2014
- condenast/pangea (1.7.016)
- markmercedes/trest (v2.1.0)
TRest is an ORM that maps REST resources to PHP objects. Designed to use in applications that need to consume data from a RESTful API. - hautelook/templated-uri-router (2.0.0)
Symfony2 RFC-6570 compatible router and URL Generator - deefour/aide (0.6.0)
A set of classes to assist Laravel and Silex development. - gushphp/gush (1.8.9, 1.8.8)
Rapid workflow for project maintainers and contributors - cakephp/cakephp (3.0.0-alpha2)
The CakePHP framework - ts/reader-excel (v2.0.2, v2.0.1, v2.0.0)
Excel plugin for ts/reader, my extensible string and file reading library. - ts/writer (v2.0.0)
Extensible data output library. - ts/reader (v2.0.0)
Extensible string and file reading library. - ts/mailer (v2.0.0)
Simple wrapper around Swiftmailer. - ts/logicobject (v2.0.0)
Complex data objects containing logic and relationships. - ts/dataobject (v2.0.0)
Simple data objects and enumerations in PHP. - romeo7/rock-template (0.9.0)
Flexible template engine for PHP with MODx-like syntax. - ts/common (v2.0.0)
Common and reusable contracts and exceptions. - ts/collection (v2.0.0)
Simple collection class for added type safety where needed. - kdyby/translation (v2.0.2)
Integration of Symfony/Translation into Nette Framework - blainesch/li3_fake_model (0.2.1)
Lithium PHP alternative (fast) model implementation - vasek-purchart/phing-symfony-command-task (1.1)
This Phing task allows you to call commands from a Symfony Console Application comfortably. - kdyby/doctrine (v2.1.0, v2.0.3)
Doctrine integration into Nette Framework - sseffa/video-api (1.0.0)
- endroid/symfony-application (1.6.12)
Endroid Symfony Application - arthurh/simple-api-hateoas (1.0.1)
Easiest api RESTFUL creator implementing hateoas. - duncan3dc/sonos (0.8.1, 0.8.0, 0.7.6)
A class to control Sonos speakers - romeo7/rock-cache (0.9.2)
Key-value storage in memory. As a storage can be used: Local, APC, Redis, Memcache, Couchbase. All storage objects have one interface, so you can switch them without changing the working code. - devato/presenter (0.1.0)
View Presenter - graham-campbell/github (v0.1.0-alpha)
GitHub Is A GitHub Bridge For Laravel 4.1+ - graham-campbell/digitalocean (v0.1.0-alpha)
DigitalOcean Is A DigitalOcean Bridge For Laravel 4.1+ - graham-campbell/dropbox (v1.0.1)
Dropbox Is A Dropbox Bridge For Laravel 4.1+ - graham-campbell/flysystem (v0.5.1-alpha)
Flysystem Is A Flysystem Bridge For Laravel 4.1+ - maciejczyzewski/bottomline (0.0.5)
A utility library delivering consistency, customization, performance & extras. - xplore/bootstripe (v0.4.0)
A SilverStripe theme built with Grunt and Bower, incorporating Bootstrap and Font Awesome - magicphp/framework (1.0.4)
The MagicPHP Framework - pjdietz/wellrested (v2.0.0)
Simple PHP Library for RESTful APIs - thibaud-dauce/eloquent-inheritance-storage (v0.2, v0.1)
Easily manage inheritance with Eloquent ORM - cjsaylor/libdomain (1.0.3, 1.0.2)
PHP classes and traits to facilitate domain driven design. - graham-campbell/manager (v1.0.1)
Manager Provides Some Manager Functionality For Laravel 4.1+ - endroid/gcm (1.2.3)
Endroid Google Cloud Messaging - 24hoursmedia/tesla-esync-bundle (v1.0.102)
Esync CRUD events Symfony budle - snowfire/beautymail (v1.0.3, v1.0.2, v1.0.1, v1.0.0)
- dragosprotung/sport-tracker-connector (0.2.1)
A set of tools to dump / upload / port workouts from different online sport trackers to another (ex endomondo.com, flow.polar.com). - cyclear/game-bundle (0.7.0)
A cyclinggame in the Cyclear-tradition - kedrigern/phpio (v0.5)
PHP class for batch file processing. You can read, write, delete, move. All in pretty object. - ramverk/dbal (0.1.3, 0.1.2, 0.1.1)
Ramverk DBAL Component - chippyash/strong-type (1.0.6, 1.0.5)
Strong type support. For when you absolutely want to know what you are getting - toin0u/digitalocean-v2 (0.1.1)
DigitalOcean API v2 PHP 5.3+ library - emil/inliner (v1.0.0)
- genj/faq-bundle (v1.0.0)
Symfony FAQ bundle - genj/dev-tools (v1.0.0)
Meta package which you can include in your composer.json's require-dev section. Provides development tools like PHPUnit, PHP_CodeSniffer, etc. - net_bazzline/php_component_memory_limit_manager (1.0.1, 1.0.0)
Supports you to validate if your script is reaching the allowed maximum memory usage - mauserrifle/simresults (v0.4.0)
Simrace result reader for PHP - neopangea/f3-mod-cms-content (v0.0.1)
CMS conetn module - endroid/google-analytics-bundle (1.0.3)
Endroid Google Analytics for Symfony - sinergi/project (0.1.10, 0.1.9, 0.1.8, 0.1.7, 0.1.6)
Project Dependency Workflow - jenssegers/date (v2.0.6)
A date library to help you work with dates - bycedric/inquiry (v0.2.1, 0.2.0)
A Laravel URI syntax parser, designed for REST apis. - elcodi/bamboo-store (v0.1.13)
Bamboo Project, an ecommerce built on Elcodi - jonnyw/php-phantomjs (v3.0.2, v3.0.1)
A PHP wrapper for loading pages through PhantomJS - graham-campbell/testbench (v1.0.0-beta2)
TestBench Provides Some Testing Functionality For Laravel 4.2 - serlo-org/athene2-versioning (1.0)
Zend Framework 2 Module that provides versioning components for Athene2 - serlo-org/athene2-class-resolver (1.0)
Zend Framework 2 Module that provides class resolving components for Athene2 - net_bazzline/php_component_time_limit_manager (1.0.0, 0.0.1)
Supports you to validate if your script is reaching the allowed maximum runtime - alxmsl/cronmanager (v1.0.0)
Cron manager for PHP - cargomedia/cm (1.56.1)
- pitekantrop/shittyprofiler (1.1.4)
A shitty profiler for Laravel. - liil/kint (v1.0)
Kint - debugging helper for PHP developers with clean theme - kdyby/console (v2.3.0)
Symfony Console integration for Kdyby components - mimmi20/file-loader (2.0.0-beta)
a class to load remote or local files - cleentfaar/humanizer (1.1.3, 1.1.2, 1.1.1, 1.1.0)
A PHP library that turns any type of value into a human-readable string - he-rnand-es/hipchat-laravel (v0.1.0)
HipChat PHP Client Wrapper for Laravel 4.2+ - bugbuster/integrity_check (3.4.0-RC1)
Contao CMS integrity check for some files - elcodi/elcodi (v0.1.13)
Barebones Ecommerce functionality for Symfony - elcodi/attribute-bundle (v0.1.13)
Elcodi Attribute component - kdyby/annotations (v2.1.0)
Doctrine Annotations integration into Nette Framework - webberig/html-utilbelt-bundle (1.0.1)
Adds the HTML Utilbelt Twig extensions to your Symfony 2 app - webberig/html-utilbelt-twig (1.0.1)
Provides Twig extensions for the HTML Utilbelt - kdyby/events (v2.2.0)
Events for Nette Framework - ruflin/elastica (v1.3.0.0)
Elasticsearch Client - krinfreschi/async-streams (v0.0.2)
- lazyants/workflow-bundle (v0.3)
Workflow Bundle provides basic usefully functional for workflows - techdivision/persistencecontainer (0.7.4)
Persistence container implementation for thread based PHP ApplicationServer. - task/phpunit (v0.3.3)
PHPUnit plugin for Task - appserver-io/build (0.1.3)
Generic build- and deployment targets - packaged/helpers (v0.1.1)
- chobie/jira-api-restclient (v1.0.0)
JIRA REST API. - serlo-org/athene2-common (1.0)
Zend Framework 2 Module that provides core components for Athene2 - jenssegers/ab (v0.1.0)
A server-side A/B testing tool for Laravel. - voilab/slim-extensions (1.1.0)
Some Slim extensions made by Voilab. - cloak/cloak (1.3.0)
cloak is a library that takes a code coverage. - ephect/simpleprofiler (v0.1.3)
A simple profiler tool that helps track execution time and memory usage. - iakio/phpunit-growlprinter (0.1.0)
PHPUnit Growl(GNTP) Printer - pingpong/modules (1.0.9)
Laravel 4 - Simple Modules - iakio/gntp-notify (0.2.0)
Simple GNTP notification library - schlaefer/saito (4.0.5)
Saito - The Threaded Forum - zenify/doctrine-methods-hydrator (v1.0.4)
Hydrates presenter methods from parameters to entities - zeroclipboard/zeroclipboard (2.1.6)
The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. - atyagi/elasticache-laravel (1.0.0)
Elasticache Drivers for Laravel Cache and Session - jqgeeks/jquery-ui (1.10.4)
JQuery-UI compatible with rudrax framework - holyshared/coverallskit (1.2.3)
CoverallsKit is the library for transmitting the report of code coverage to coveralls.