- KnpLabs Blog: Composer Level2: 5 more things like Class Maps, Forking, & Scripts
- Lee Blue: PHP vs Ruby :: 2012 Year End Review
- Adam Culp: Clean Development Series (Parts 1, 2 & 3)
- Igor Wiedler: Scaling a Silex code base
- OpenShift Blog: Integrate PHPStorm and SFTP into OpenShift
- Oscar Merida: Smelly PHP code
- Timothy Boronczyk: PHP Assertions
- Community News: PHP Niagara User Group Kickoff
- Carl Vuorinen: Controller testing with database fixtures in Zend Framework
- Matthew Weier O'Phinney: Zend Server, ZF2, and Page Caching
- Wojciech Sznapka: Is Symfony2 a MVC framework?
- PHPMaster.com: The Open/Closed Principle
- Fortrabbit.com: Video: Symfony2 on fortrabbit
- NetTuts.com: The Whens and Whys for PHP Design Patterns
- QaFoo: Code Review Tool
2013年11月7日星期四
Site News: Blast from the Past - One Year Ago in PHP
Community News: Packagist Latest Releases for 11.07.2013
- jdesrosiers/silex-conneg-provider (v0.1.0)
A silex service provider that provides tools for doing HTTP content negotiation. - femto/core (v0.2.2, v0.2.1)
The core of the Femto framework - wave-framework/wave (v3.5.0)
Wave is a lightweight PHP5.3 MVC framework - todc/todc-bootstrap (v3.0.2)
Google-styled theme for Bootstrap. - uecode/common-bundle (1.0.1, 1.0.0)
Common UE Bundle for Symfony2 - twbs/bootstrap (v3.0.2)
Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development. - edvinaskrucas/notification (1.2.2)
Package for Laravel for helping to manage flash / instant notifications / messages. - hobnob/xml-stream-reader (v1.0.4)
PHP SAX XML Stream Reader - mxc-commons/mxc-generics (v0.1.0)
Zend Framework 2 Module that provides some useful fundamental assets for reuse and convenience. - atelierspierrot/assets-library (v1.0.1)
The javascript & css library of Les Ateliers. - gregwar/image-bundle (v2.0.10, v2.0.9, v2.0.8)
Image handling bundle - gregwar/image (v2.0.10, v2.0.9, v2.0.8)
Image handling - gizlab/doctrine-bundle (1.0.1)
Extending discriminator map - kamisama/cake-resque (4.0.2)
A CakePHP plugin for creating background jobs with Resque - giggsey/libphonenumber-for-php (5.8.8)
Unofficial PHP Port of Google's libphonenumber - dphp/commons (0.2.0, 0.1.0)
Commonly used interfaces and classes. - openbuildings/jam (0.4.31, 0.4.30)
Small but feature rich ORM, has extensible models and builders, baked in upload functionality, supporting multiple backends (rackspace, ftp), polymorphic associations, form builders, nested forms, validators - bakame/entity (v0.0.3, v0.0.2, v0.0.1)
Bakame / Entity is a lightweight PHP Entity library - mikemix/zend2-auth (v1.1, v1.0.3, v1.0.2, v1.0.1, v1.0)
Simple Zend2 authentication module - openbuildings/purchases (0.3.23)
Multi Store Purchases - surt/granada (v1.5)
Active Record / ORM with eager loading, lazy loading and more - bmidget/kohana-formo (3.1.4.2)
Formo is a form module for Kohana 3 that lets you work with forms as objects - dreamfactory/javascript-sdk (1.0.15)
DreamFactory Services Platform(tm) Javascript SDK - billogram/billogram_api (v1.01)
Library for connecting to the Billogram v2 API - flow/flow (0.6.1)
Fast PHP templating engine - pugx/i18n-bundle (v3.0.5)
Manage i18n - crisu83/yiistrap-widgets (1.5.0)
Extension library for Yiistrap. - rackspace/php-opencloud (v1.7.1)
Rackspace open cloud php library - happyr/location-bundle (0.1.8)
A Symfony2 Bundle to handle geographic location of your entities - mouf/html.widgets.statsgrid (v1.0.0)
This PHP package contains a HTML pivot table. You provide it with a data set and the list of columns and rows and it will display a nice pivot table. - mlalbuquerque/silex-skeleton (v3.9.1)
A Silex skeleton for little (not tiny) projects - taluu/totem (v1.0.0, v0.4)
Changeset calculator between data - gordalina/mangopay-php (0.0.4, 0.0.3)
PHP library to communicate with mangopay.com API - groupdocs/groupdocs-php (1.7.2)
GroupDocs API library for PHP - nizsheanez/yii2-websocket-application (v0.3, v0.2)
WebSocket server and Daemons yii2 Application and Request/Response classes, on simple JsonRpc protocol - ornicar/apc-bundle (1.0.1)
Provides a command line task to clear APC cache from the console - sonata-project/page-bundle (2.3.4)
Symfony SonataPageBundle - netsensia/companies-house (v0.1.2)
Wrapper classes for Companies House Gateway - v2e4lisp/mocha-php-core (v0.1.0)
mocha.js like test framework - taluu/link-set (v0.4)
Changeset calculator between data - dagardner/dacontainer (1.3)
A simple but still advanced IoC container. - o5/grido (1.0.1)
Grido - DataGrid for Nette Framework - payment/saferpay-bundle (2.0.6)
Saferpay payment service library for symfony - havvg/dry-bundle (v2.5.0)
A Symfony2 bundle providing helpers to ease usage of common patterns. - akkroo/stripe-event (v1.0.1)
Stripe webhook integration for PHP - icap/wiki-bundle (v2.2.0)
Claroline wiki plugin from ICAP - goetas/apache-fop (1.0.1)
Symfony2 Apache FOP Bundle - php/skeleton (0.2.4)
Generic PHP.Skeleton package - native5/native5-sdk-client-php (0.2.0)
Native5 PHP Framework for building web applications. - slm/google-analytics (v0.4.0-beta1)
Google Analytics tracking integration for Zend Framework 2 - willdurand/geocoder (2.3.2)
The almost missing Geocoder PHP 5.3 library. - supertag/gearman-bundle (v0.2.2)
Gearman bundle for Symfony2 to manage and monitor PHP gearman jobs and queue - dphp/composer-utils (0.1.1)
Some utility scripts for Composer by dPHP. - komex/unteist (v1.1.0)
Unit test framework - nizsheanez/yii2-json-rpc (v1.1.3)
A lightweight JsonRpc Server and Client for PHP - native5/native5-sdk-common-php (0.2.0)
Native5 Commons Module - vigattin/vigattin (v1.0-beta.1)
vigattin website framework - native5/native5-sdk-services-php (0.2.0)
PHP Services SDK for invoking Native5 Hosted Services.
SitePoint PHP Blog: Yii Routing, Active Record and Caching
On the SitePoint PHP blog today Sandeep Panda has a new article looking at routing, using Active Record and caching with the Yii Framework. The Yii framework is a " a high-performance PHP framework best for developing Web 2.0 applications".
Almost all modern web apps have 3 major concerns: Retrieving data from a database easily and effectively, caching the web content and URL rewriting to create user friendly URLs. Yii, like any other good framework, offers simple and easy solutions to all of the above. [...] In this tutorial we will look at how Yii greatly simplifies the development of database driven websites with its Active Record support. Additionally, Yii lets you further improve your websites by implementing user friendly URLs and powerful caching techniques.
He creates a simple application based on the Yii framework skeleton called "gadgetstore" that works with fictional phone data. He shows how to set up a few sample routes and adding the "phone" table to the database. He then uses the framework's tools to auto-generate the model and shows the save/delete operations. He then creates the "Phone" controller and an add action to handle the create submissions. Finally, he gets into caching the response data and uses the built-in "cache" function for the models to store the results of a "findAll" request.
Link: http://www.sitepoint.com/yii-routing-active-record-caching/
Paul Reinheimer: Using GeoIP at WonderProxy
Paul Reinheimer has a new post talking about some of his experience implementing GeoIP at his HTTP testing proxy service WonderProxy (and the steps you'd need to take to make it work for your application). The GeoIP service helps you identify the sources (geolocation) of connections to your applications.
At WonderProxy we've been helping people test their GeoIP sensitive applications since launch. It's why we launched. Perhaps ironically it's never been a technology we've used on our own website. With our upcoming re-design that's changing.
He's broken it down into four major steps, each with a bit of description to go along with them:
- Using GeoIP
- Acquire a database
- Rebuild Apache & PHP (with the Apache module)
- Handle edge cases
This isn't a detailed tutorial to getting GeoIP support working in your app, but it does provide a good direction and links to several resources to help you along your way.
Link: http://blog.preinheimer.com/index.php?/archives/421-Using-GeoIP-at-WonderProxy.html
Sameer Borate: Easy PHP debugging with Kint
Sameer Borate has posted about using Kint, a "more powerful debugger" that lets you output more data than just the usual var_dump or print_r provides and in a much more readable format.
My standard debugging tool when using PHP is xdebug. Pairing xdebug with Komodo gives me a very productive environment for building PHP applications. However, testing an application code on a hosted server can be many times frustrating as one has only the print_r and var_dump functions at our disposal. What I need is a library that I can easily install on the server and start using. Although there are a few debugging libraries around, one of my favorites is Kint.
He walks you through the installation of the tool and provides an example of the most basic usage (and output) from a call to the tool's "dump" function. He also gets into some of the additional features the library provides including intelligent formatting, debug tracing and limited theme configuration.
Link: http://www.codediesel.com/tools/easy-php-debugging-with-kint/
2013年11月6日星期三
Community News: Latest Releases from PHPClasses.org
- PHP MySQL Quizz classPackage:Summary:Manage questions and user answers stored in MySQLGroups:Author:Description:This class can manage questions and user answers stored in MySQL...
Read more at http://www.phpclasses.org/package/8322-PHP-Manage-questions-and-user-answers-stored-in-MySQL.html - Linear FitPackage:Summary:Perform linear regression on a set of data valuesGroups:Author:Description:This class can perform linear regression on a set of data values...
Read more at http://www.phpclasses.org/package/8320-PHP-Perform-linear-regression-on-a-set-of-data-values.html - PHP URL ComparePackage:Summary:Compare two URLs and show the differencesGroups:Author:Description:This class can compare two URLs and show the differences...
Read more at http://www.phpclasses.org/package/8315-PHP-Compare-two-URLs-and-show-the-differences.html - Simple ImagePackage:Summary:Resize images preserving the original proportionsGroups:Author:Description:This is a simple class can resize images preserving the original proportions...
Read more at http://www.phpclasses.org/package/8309-PHP-Resize-images-preserving-the-original-proportions.html - Manager MySQLPackage:Summary:Execute MySQL queries using table field valuesGroups:Author:Description:This class can execute MySQL queries using table field values...
Read more at http://www.phpclasses.org/package/8323-PHP-Execute-MySQL-queries-using-table-field-values.html - Remove nth Occurance from StringPackage:Summary:Remove or keep repeated text in a stringGroups:Author:Description:This class can remove or keep repeated text in a string...
Read more at http://www.phpclasses.org/package/8314-PHP-Remove-or-keep-repeated-text-in-a-string.html - PHP URL Hash Value HMACPackage:Summary:Generate hashes for URLs to prevent tamperingGroups:Author:Description:This class can generate hashes for URLs to prevent tampering...
Read more at http://www.phpclasses.org/package/8310-PHP-Generate-hashes-for-URLs-to-prevent-tampering.html - PHP Social SharingPackage:Summary:Get the times a page is shared in social networksGroups:Author:Description:This class can get the times a page is shared in social networks...
Read more at http://www.phpclasses.org/package/8317-PHP-Get-the-times-a-page-is-shared-in-social-networks.html - PHP CSSMinPackage:Summary:Compact CSS files eliminating redundant textGroups:Author:Description:This class can compact CSS files eliminating redundant text...
Read more at http://www.phpclasses.org/package/8321-PHP-Compact-CSS-files-eliminating-redundant-text.html
Community News: Packagist Latest Releases for 11.06.2013
- nizsheanez/yii2-sphinx-tools (v1.1.6)
A lightweight JsonRpc Server and Client for PHP - nizsheanez/yii2-json-rpc (v1.1.2)
A lightweight JsonRpc Server and Client for PHP - nizsheanez/yii2-asset-converter (v1.2.0, v1.1.9, v1.1.8)
Less, Sass and Phamlp converter for Yii2. No system requires. Fork of https://github.com/athos99/assetparser with Composer support, Less autoupdate by Composer, customizing of output directory - markstory/asset_compress (v0.11)
An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification. - anahkiasen/illuminage (1.1.0)
Wrapper for the Imagine library to hook into the Laravel framework - chilldev/proxy-templating-bundle (0.0.3)
Dynamic templating proxy references bundle for Symfony2. - components/handlebars.js (v1.1.2)
Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be. - akkroo/apiclient (v1.0.4)
Akkroo Public API client libraries - jms/metadata (1.5.0)
Class/method/property metadata management in PHP - atelierspierrot/dev-tools (v1.2.1)
Tools & facilities to manage app packages' development - geoip/geoip (v1.14)
MaxMind GeoIP PHP API - psecio/iniscan (2.3)
A scanner to evaluate php.ini security - supertag/gearman-bundle (v0.2.1)
Gearman bundle for Symfony2 to manage and monitor PHP gearman jobs and queue - urodoz/cachemanager (1.0)
Bundle for Symfony 2 to handle cache management - snapshotpl/zf-snap-geoip (2.0.2)
MaxMind GeoIP Module for Zend Framework 2 - contao-community-alliance/composer (0.7.2, 0.7.1, 0.7.0)
composer integration into the contao cms - mf2/shim (v0.2.2)
A parsing library for parsing pages from a few common non-mf2 sites into the mf2 structure - mlalbuquerque/silex-skeleton (v3.9.0)
A Silex skeleton for little (not tiny) projects - erusev/parsedown (0.4.3, 0.4.2)
Parser for Markdown. - bitgandtter/ratchet-bundle (0.6.4, 0.6.3)
ratchet integration into sf2 - bitgandtter/google-bundle (0.3.7, 0.3.6, 0.3.5)
Integrate Google Services into Symfony 2 app. - bitgandtter/facebook-bundle (0.2.7, 0.2.6, 0.2.5)
Integrate Facebook Services into Symfony 2 app. - bitgandtter/twitter-bundle (0.2.4, 0.2.3, 0.2.2)
Integrate Twitter Services into Symfony 2 app. - nette/nette (v2.0.13)
Nette Framework - innovative framework for fast and easy development of secured web applications in PHP. Write less, have cleaner code and your work will bring you joy. - mauserrifle/simresults (v0.2.4)
Simrace result reader for PHP - webvariants/babelcache (v2.0.2)
Generic caching library with namespace support - anahkiasen/former (3.3.0)
A powerful form builder - voceconnect/voce-post-meta-date (v1.1.0)
Extension of Voce Post Meta Plugin to create date meta fields - voceconnect/voce-post-meta-psu (v1.0.0)
Post Meta API Extension for Post Selection UI fields - bitgandtter/binnacle-bundle (0.1.1)
Binnacle record - mongator/behaviors (v1.4.2, v1.4.3)
Bahaviors for Mongator, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB - flow/flow (0.6.0)
Fast PHP templating engine - da-mitchell/steam-api (1.0.0)
PHP wrapper for the steam web API - slm/mail (v1.3.0)
Integration of various email service providers in the Zend Framework ZendMail - fr3d/xmldsig (v0.3)
Tool for easy management of XML Signatures (http://www.w3.org/TR/xmldsig-core/) - gordalina/mangopay-bundle (1.0.2)
Symfony2 bundle to integrate Mangopay - fuelphp/event (0.2.1)
Framework independent Event library. - bitgandtter/socialuser-bundle (0.2.6)
Symfony BIT SocialUserBundle - kumatch/fs-temp (0.1.1)
A simple temporary file and directory manager for PHP. - bitgandtter/user-bundle (0.2.2)
Symfony BIT UserBundle - davewid/peyote (0.7.1)
A database query builder for PHP 5.3+ - dphp/composer-utils (0.1.0)
Some utility scripts for Composer by dPHP. - femto/core (v0.2.0)
The core of the Femto framework - netsensia/companies-house (v0.0.10, v0.0.9)
Wrapper classes for Companies House Gateway - joomlatools/installer (0.1.0)
A Composer plugin to install Joomla extensions into your installation. - fortawesome/font-awesome (v4.0.3)
The iconic font designed for Bootstrap - beberlei/assert (v1.6)
Thin assertion library for input validation in business models. - atoum/atoum (0.0.1, 0.0.0)
Simple modern and intuitive unit testing framework for PHP 5.3+ - pid/speakingurl (0.5.0)
Generate of so called 'static' or 'Clean URL' or 'Pretty URL' or 'nice-looking URL' or 'Speaking URL' or 'user-friendly URL' or 'SEO-friendly URL' or 'slug' from a string. - openbuildings/purchases (0.3.22, 0.3.21)
Multi Store Purchases - ginger/ginger (v1.0.0)
- openbuildings/shipping (0.3.16)
Add complex shipping to openbuildings/purchases package - shabbyrobe/cachet (1.3.0)
Pluggable Caching for PHP 5.5 - frenkynet/flysystem (0.1.4)
Filesystem abstraction, but easy. - braincrafted/bootstrap-bundle (v2.0.0-alpha2)
Twitter Bootstrap for Symfony2 - happydemon/s4k (0.9)
An examplary implementation of Sentry in Kohana - xsolve-pl/xsolve-bootstrap-crud-bundle (1.0.0)
XSolve Twitter Bootstrap bundle with CRUD generator and an example layout - enlitepro/enlite-admin (v1.1.3)
- mediawiki/semantic-mediawiki (1.9beta1)
MediaWiki extension that lets you store and query structured data within wiki pages - cviebrock/eloquent-sluggable (1.0.4)
Easy creation of slugs for your Eloquent models in Laravel 4.