2013年11月4日星期一
Rob Allen: Setting up PHP & MySQL on OS X Mavericks
For those that have made the switch to OSX Mavericks and are wondering how to get PHP and MySQL into a working state, Rob Allen has posted a quick guide to getting it all set up.
With OS X 10.9 Mavericks, Apple chose to ship PHP 5.4.17. This is how to set it up from a clean install of Mavericks. Note: If you don't want to use the built-in PHP or want to use version 5.5, then these are [other] alternatives: a binary package from Liip, Zend Server and a Homebrew install.
He provides all the commands you'll need to get things up and running including checking file/directory permissions, installing MySQL and using the command line to work with Apache (no more "Web Sharing"). He also includes the configuration changes to be made to the php.ini including how to enable Xdebug. There's lots of other good things included in the guide as well like setting up Composer, PHPUnit and how to compile a few handy extensions.
Link: http://akrabat.com/computing/setting-up-php-mysql-on-os-x-mavericks/
Davey Shafik: Keynoting at ZendCon Europe
Davey Shafik has a new post about doing the closing keynote at this year's ZendCon Europe conference (happening November 18th through 20th in Paris, France).
In a little under three weeks I will be giving the closing keynote at ZendCon Europe. This will my first keynote and I'm excited to be talking about The Evolution of DevOps.
His talk will cover how the DevOps role has come into its own over the past few years and what kinds of changes to expect, as a developer, in the upcoming years. If you'd like to hear this and lots of other great talks, there's still time to pick up your tickets for either just the conference or for both the conference and tutorials. You can even opt to take the Zend certification while you're at the event.
Link: http://daveyshafik.com/archives/68854-keynoting-at-zendcon-europe.html
Chris Jones: DTracing a PHPUnit Test: Looking at Functional Programming
On his Oracle blog Chris Jones has shared more details about using DTrace for dynamic tracing of the execution of your application. In this new post he looks more specifically at using it to trace through a PHPUnit test for a functional programming example.
I was reading the article Functional Programming in PHP by Patkos Csaba and wondering how efficient this type of programming is. I thought this would be a good time to fire up DTrace and see what is going on. Since DTrace is "always available" even in production machines (once PHP is compiled with --enable-dtrace), this was easy to do.
Using the code provided from the other post he sets things up to run some sample tests via PHPUnit. He makes a simple DTrace D script to configure a tracer to watch for "function entry" and "function exit" during execution, outputting the function tree each time when the given function is found (via a parameter). He includes both the command to run the test with the trace and an example of the output result.
Link: https://blogs.oracle.com/opal/entry/dtracing_a_phpunit_test_looking
2013年11月1日星期五
Site News: Popular Posts for the Week of 11.01.2013
- Community News: Latest PEAR Releases for 10.28.2013
- Site News: Popular Posts for the Week of 10.25.2013
- 7PHP.com: Auto Generate Properties Dynamically For Your Classes Using Magic Methods & Reflection
- PHP.net: A further update on php.net
- ServerGrove Blog: Symfony2 components overview: EventDispatcher
- Site News: Blast from the Past - One Year Ago in PHP
- Liip Blog: HHVM with Symfony 2 looks amazing
- Voices of the ElePHPant: It's the Booze Talking #5 - PHP Community...again (Part #1)
- Hasin Hayder: Running Symfony 2 Applications in OpenShift
- Developer Drive: Introducing Laravel, part 2
Community News: Packagist Latest Releases for 11.01.2013
- rgou/bootstrap-bundle (v0.9.6, v0.9.5)
Twitter Bootstrap Symfony2 bundle with generator for Doctrine ORM and ODM - ebidtech/geoziplocation (v0.3.1, v0.3, v0.2)
Geo zipcode location - liip/rmt (0.9.11, 0.9.10)
Release Managment Tool - infuse/libs (0.1.16.0)
Libraries for infuse framework - gordalina/easypay-bundle (1.0.0)
EasypayBundle for the Symfony Framework - friendsofsymfony/elastica-bundle (v2.1.3-PL1, v2.0.3-PL1)
Elasticsearch PHP integration for your Symfony2 project using Elastica - jdolieslager/jsonrpc (0.0.1)
Server and/or client library for JSON RPC communication - psecio/iniscan (2.1, 2.0)
A scanner to evaluate php.ini security - adrienbrault/statsd-collector (0.1.0)
Collections of statsd collectors with templated metric names - larrytech/auth (1.0.3)
Authentication, Permissions and Roles for Laravel - drmabuse/yii-bootstrap-3-module (0.0.7)
Yii Web Widgets - brainboxlabs/brain-socket (v1.0.0)
Websockets for event-driven Laravel apps. - aws/aws-sdk-php (2.4.8)
AWS SDK for PHP - dreamfactory/lib-php-common-yii (1.1.5, 1.1.4)
DreamFactory Fabric(tm) PHP Components for Yii - dreamfactory/lib-php-common-platform (1.1.12)
DreamFactory Services Platform(tm) Components Library/SDK for PHP - kraksoft/mixins (2.3.2-patch5)
LESS mixins forked from Bootstrap - zenstruck/intl (v1.0.0)
Useful helpers for easing internationalization - jlong/sass-twitter-bootstrap (v3.0.1)
A sass port of the sleek, intuitive, and powerful front-end framework for faster and easier web development. - dreamfactory/dsp-core (1.1.3)
DreamFactory Services Platform(tm) Core - dreamfactory/oasys (0.3.1)
DreamFactory Oasys (Open Authentication SYStem) - dreamfactory/service-oauth (0.3.1)
DreamFactory Oasys (Open Authentication SYStem) - teepluss/theme (v1.0.1)
Theme will help you organize your themes inside Laravel 4 projects easily and maintain its related assets, layouts and partials for the theme in single directory. - billogram/billogram_api (v1.0)
Library for connecting to the Billogram v2 API - dreamfactory/app-admin (1.1.4)
DreamFactory Services Platform(tm) Admin Application - crisu83/yiistrap-widgets (1.4.0, 1.3.0)
Extension library for Yiistrap. - shadowprince/slimext (0.1.4, 0.1.3)
Addon for Slim microframework, adding components and routes prefix support - embed/embed (v1.0.2)
PHP library to retrieve page info using oembed, opengraph, etc - kmd/logviewer (1.0.8)
Laravel 4 log file viewer. - rackspace/php-opencloud (v1.6.0, v1.7.0)
Rackspace open cloud php library - madeyourday/contao-rocksolid-slider (v1.0.6)
Responsive Slider. Full Contao integration, latest touch technology and hardware acceleration. - openbuildings/purchases (0.3.17, 0.3.16, 0.3.15, 0.3.14)
Multi Store Purchases - openbuildings/emp (0.1.8, 0.1.7)
Payments for eMerchantPay (EMP) https://www.emerchantpay.com/ - payum/payum-bundle (0.6.2, 0.6.1)
The payment bundle integrates payum libs into symfony2 framework - payum/payum (0.6.3)
Payment lib - o5/grido (1.0.0)
Grido - DataGrid for Nette Framework - vipsoft/jira-extension (1.0.10)
Load features for Behat from Jira issues - uam/propel-s3object-behavior (1.0.11, 1.0.10, 1.0.9, 1.0.8, 1.0.7)
A Propel behavior that allows objects to save a file to AWS S3. - webbuilders-group/silverstripe-cmspreviewpreference (0.1.0)
Adds the ability for users to control the default CMS preview mode and size for their login - flowjs/flow-php-server (v0.1.1)
PHP library for handling chunk uploads. Works with flow.js html5 file uploads. - bread/rest (v0.5.2)
Bread REST framework - bread/helpers (v0.3.0)
Bread helpers libreary - parm/parm (0.3.1, 0.3.0)
Active Record ORM with closures and web interface - openbuildings/paypal (0.2.1, 0.2.0, 0.1.2)
PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments. - bread/storage (v0.8.3)
Bread storage library - bread/configuration (v1.2.0)
Bread configuration library - voceconnect/voce-post-meta (v1.0.0)
Easily create post metaboxes and add fields - mlalbuquerque/silex-skeleton (v3.8.5)
A Silex skeleton for little (not tiny) projects - iphp/content-bundle (v0.1.3)
Basic content management for symfony - claroline/core-bundle (2.1.7, 2.1.6)
Claroline core bundle - lilweb/coffeescript-bundle (0.0.1)
An assetic filter for CoffeeScript in pure PHP implementation - claroline/forum-bundle (2.0.4)
Claroline forum plugin - webcreate/vcs (1.1.12)
PHP interface for version control systems - tasker/utils (V1.1)
Basic tasks helpers - widget/widget (0.9.7)
A micro-framework provided powerful but simple APIs for faster and easier PHP 5.3+ development. - supertag/gearman-bundle (v0.1.2)
Gearman bundle for Symfony2 to manage and monitor PHP gearman jobs and queue - dreamfactory/lib-php-common (1.1.1)
Common PHP Components Library for the DreamFactory Services Platform(tm) - samwilson/kohana_datalog (0.2.1)
A Kohana module for tracking changes to ORM entities. - blueimp/jquery-file-upload (9.0.0)
File Upload widget for jQuery. - slywalker/base (1.6.3)
CakePHP Base Plugin
Lee Davis: Is a HTTP DELETE request idempotent?
Lee Davis has a new post to his site with some thoughts about RESTful APIS and the correct response to DELETE calls when a resource has already been removed. One camp says a 404 should be thrown as it's no longer there, the other says 204 a "No Content" should always be returned. Lee looks at both sides of the argument and shares some of his own thoughts too.
Recently I had a read of an interesting post by Lukas Smith (@lsmith) about the use of the DELETE method when building RESTful services. I wanted to get my thoughts down on this. Mostly to help myself, but if it helps you determine a better approach, then great. I'm nowhere near qualified enough to preach, so this is by no means a "you should do it this way / my way is correct post", just food for thought. Besides, there are probably more questions here than answers.
He talks about the idea of "idempotence" when it comes to REST APIs and how it relates back to the DELETE discussion. He points out that the term has more to do with the end result of the request and not so much about how it's handled (and any "side effects" that may come with it). Various checks on the resource in question - like "does it exist" - could be considered a side effect of its operation. In his opinion, though, the 200 series of responses are more appropriate when a resource is actually deleted.
Link: http://www.duckheads.co.uk/is-a-http-delete-requests-idempotent/491