Web & PHP Magazine:
December 2013 Issue Released - "Merry Nginxmas"
December 12, 2013 @ 13:47:12
voice your opinion now!
The Web and PHP Magazine has released their latest issue - December 2013, "Merry Nginxmas". This issue includes articles like:
- Merry Nginxmas: A beginner's guide
- Automate ALL the Phings!
- How PHP manages variables
- Compile Your Style: Structuring and automating CSS
- Open source spotlight: PHP-CPP
- End-to-end tests: not the be-all and end-all
Web & PHP offers all of their issues at no cost, so head over and grab a copy for yourself. Unfortunately this is also the last ever issue of the magazine but they have plenty of back issues on their site if you want more great content.
Faster and Cheaper The Evolution of the hhvm JIT
December 12, 2013 @ 12:09:35
voice your opinion now!
On the HHVM (HipHop Virtal Machine) blog there's a new post that looks at the evolution of the HHVM JIT compiler since the project started about four years ago.
When the hhvm project was started almost 4 years ago, it had a two-part mandate: First, create a PHP JIT that could serve facebook.com at least as efficiently as hphpc, the PHP execution engine we were using at the time. Second, replace hphpi, the interpreter our PHP developers were using in their daily work. hphpc and hphpi were independent pieces of software with unintentional subtle differences in behavior and a significant maintenance burden. Unifying the execution engines used in production and development would make our jobs easier while giving the PHP devs a nicer experience at the same time.
The article goes on to talk about their needs from the environment and the basics of how the JIT compiler works to "translate" the code into something more low level than even C++. They chart out the performance of the HHVM versus the HPPC, showing a major growth around the end of the last year and continuing into this year. They also give an example of how this translation happens from a PHP script to bytecode to the translated result from their "TranslatorX64" tool.
Speedup Your Web Deployments Using Composer to Install PHP Classes Packages
December 12, 2013 @ 11:43:01
voice your opinion now!
On the PHPClasses.org site today Manuel Lemos has a new post showing how you can use Composer in your deployments to help install packages from the PHPClasses site.
You can install one or more packages from PHP Classes, JS Classes or other Composer repository sites. [...] To make it simpler for you, PHP Classes and JS Classes generate a sample composer.json file for each package available in the Composer repository. Just go in the page of the package you want to install and click on the Install with Composer link.
He includes a brief guide on installing Composer and an example of the resulting "composer.json" file when you click on a link in a package. He points out the use of logins (depends on the package maintainer) and the use of an "auth.json" to automatically provide this information.
This is a great example of how a site that puts the Composer ecosystem to work to provide packages outside of Packagist. Composer, by default, relies on Packagist for its package information, but you can provide alternate repositories too - including using something like Satis for local packages.
SitePoint PHP Blog:
Command line PHP using Symfony Console
December 12, 2013 @ 10:34:15
voice your opinion now!
The SitePoint blog has a new post from Daniel Gafitescu covering the use of the Symfony Console component to create command line PHP scripts quickly and easily.
As a PHP developer, you will often find yourself working with PHP in the command line. The first time I had to use it was because I would get the "Maximum execution time of 30 seconds exceeded" error on a shared server where you could not change the max_execution_time PHP setting. Nowadays building command line scripts is much easier than it used to be. If you search on Packagist you will find a lot of packages to work with the command line but the one that stands out and is the most commonly used is Symfony/Console.
He starts with what you'll need to add to your Composer configuration to pull in a development version (2.4.x-dev) of the component. With that installed, he sets up a base directory ("/app") and a basic skeleton for your application. For his first command, he creates a script that will calculate the fibonacci numbers between two given numbers. He shows how to work with the input and Output objects inside the script and the code for the finished command - including some screenshots of the output.
Creating a module in Magento 2
December 12, 2013 @ 09:15:40
voice your opinion now!
Kevin Schroeder has posted a step-by-step guide to his site today about creating a module for Magento in the first of a series of posts about Magento.
I believe that one of the best ways to learn something is to write out what it is you are learning. This forces you to think through the concepts and determine how to explain them to others. In doing so you are forced to use terms that are familiar to describe this new thing. This helps to solidify the concepts in your own mind, making it easier to remember. But still, there are three caveats: Magento 2 is not out yet, I'm learning as I write and what I share is what I see (my interpretation).
He talks about some of the differences between Magento 1 and 2 including:
- The lack of code pools
- Discovery XML files are in a different location
- A different parser for these XML files
With all of this configuration and location information covered, he gets into the actual module building. He makes a simple "Hello World" module with a module.xml, event.xml and an Observer that handles sending the text back to the waiting application.
Packagist Latest Releases for 12.12.2013
December 12, 2013 @ 08:09:03
voice your opinion now!
Recent releases from the Packagist:
- squizlabs/php_codesniffer (1.5.1)
- aequasi/cache-bundle (1.2.0, 1.3.1, 1.1.1, 1.1.0)
- graham-campbell/cms-logviewer (V0.1.0-alpha)
CMS LogViewer Is A Bootstrap CMS Plugin That Adds A LogViewer Admin Module
- graham-campbell/cms-contact (V0.1.0-alpha)
CMS Contact Is A Bootstrap CMS Plugin That Adds A Contact Form Backend
- graham-campbell/cms-cloudflare (V0.1.0-alpha)
CMS CloudFlare Is A Bootstrap CMS Plugin That Adds A CloudFlare Admin Module
- graham-campbell/cms-core (V0.1.0-alpha)
CMS Core Provides Some Core Functionality For Bootstrap CMS
- graham-campbell/uptimerobot-api (V0.1.1-alpha)
UptimeRobot API Is A UptimeRobot API Client For Laravel 4
- graham-campbell/digitalocean-api (V0.1.1-alpha)
DigitalOcean API Is A DigitalOcean API Client For Laravel 4
- graham-campbell/cloudflare-api (V0.2.1-alpha)
CloudFlare API Is A CloudFlare API Client For Laravel 4
- graham-campbell/core-api (V0.3.0-alpha)
Core API Provides Some Core API Client Functions For Laravel 4
- opis/session (1.1.3, 1.1.2)
- graham-campbell/queuing (V0.1.1-alpha)
Queuing Is A Cool Way To Queue In Laravel 4
- graham-campbell/navigation (V0.1.1-alpha)
Navigation Is A Navigation Bar Generator For Laravel 4
- graham-campbell/passwd (V0.3.1-alpha)
Passwd Is A Simple Password Generator For Laravel 4
- graham-campbell/binput (V0.3.1-alpha)
Binput Is An Input Protector For Laravel 4
- robbertkl/guesswho (v1.0.3, v1.0.2)
Custom character sheet builder for the game "Guess Who?" by Hasbro
- graham-campbell/security (V0.4.0-alpha)
Security Is A Port Of The Security Class From Codeigniter 2.1 For Laravel 4
- graham-campbell/markdown (V0.2.0-alpha)
Markdown Is A Simple PHP Markdown Wrapper For Laravel 4
- graham-campbell/htmlmin (V0.3.1-alpha)
HTMLMin Is A Simple HTML Minifier For Laravel 4
- graham-campbell/core (V0.1.1-alpha)
Core Provides Some Extra Functionality For Laravel 4
- opis/http (1.1.1)
- benkeen/generatedata (3.0.9)
Free, GNU-licensed, random custom data generator for testing software
- bugbuster/integrity_check (3.2.2)
Contao CMS integrity check for some files
- dreamfactory/dsp-core (1.2.3, 1.2.2)
DreamFactory Services Platform(tm) Core
- dflydev/doctrine-orm-service-provider (v1.0.4)
Doctrine ORM Service Provider
- bugsnag/bugsnag-laravel (v1.0.3)
Official Bugsnag notifier for Laravel applications.
- h4cc/phpqatools (1.3.0)
A meta composer package for PHP QA Tools.
- chadicus/primaids (v1.1.0)
A collection of various PHP classes for use with PHP primitive types
- slim/slim-skeleton (2.1.2)
A Slim Framework skeleton application for rapid development
- serialization/serialization (2.2)
library defining a Serializer and a Deserializer interface and basic utilities
- webbuilders-group/silverstripe-frontendgridfield (0.1)
Wraps gridfield adding support for using it on the front-end.
- dreamfactory/lib-php-common-platform (1.2.2)
DreamFactory Services Platform(tm) Components Library/SDK for PHP
- friendsofsymfony/facebook-bundle (1.3.0)
Integrate the Facebook Platform into your Symfony2 application.
- metamodels/core (1.0.7, 1.0.6)
- opis/events (1.0.1)
- rogerthomas84/skinny (2.0.4, 2.0.5)
- fsi/resource-repository-bundle (v1.0.1)
Resource repository bundle
- se/pilight-config (v0.1-beta)
Provides a configuration loader for pilight-web and pilight-state.
- riimu/accesslogstats (v0.1.0)
Access log parsing and statistics generation.
- voceconnect/objects-to-objects (v1.0.7)
A WordPress plugin/module that provides the ability to map relationships between posts and other post types
- opis/routing (1.2.2, 1.2.1)
- nette/nette (v2.1.0-RC2)
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.
- wardrobe/personal (1.0)
The WardrobeCMS core files with a personal touch.
- netsensia/companies-house (v0.1.3, v0.2.0)
Wrapper classes for Companies House Gateway
- greenball/geoip (0.0.1)
Fetching geo location from IP Addresses. For Laravel 4.
- yiisoft/yii2-twig (2.0.0-alpha)
The Twig integration for the Yii framework
- lionel/galerie (v2.0.0)
Professional pictures galleries for the web and mobile devices.
- ravasoft/user-bundle (1.3.50)
User bundle for Symfony2 framework.
- martial/crud-bundle (1.0.0)
This project aims to give a simple way to provide a CRUD service in a SOA Symfony2 project.
- acelaya/zf2-acmailer (v1.6.0)
Mail sending module for Zend Framework 2
- rackspace/php-opencloud (v1.8.1)
PHP SDK for Rackspace/OpenStack APIs
- wikibase/data-model (0.5)
PHP implementation of the Wikibase DataModel
- openbuildings/shipping (0.4.10, 0.4.9)
Add complex shipping to openbuildings/purchases package
- zenstruck/php-excel-plus (v1.2.1)
Wrapper for PHPExcel that provides abstraction for simple tasks
- zenstruck/intl (v1.0.1)
Useful helpers for easing internationalization
- zenstruck/imagine-extra-bundle (v1.0.1)
Integrate imagine-filters library into Symfony2
- dpn/xml-sitemap-bundle (v1.1.1)
Generates XML sitemaps for your favourite search engine by extracting sitemap information out of the site's routes.
- spalax/zf2-simple-acl (0.0.2)
Simple acl module. Provide possibilities to restrict ROUTES. Provide smart redirection according on path/module where user requested restricted resource. It is can be used for restricting few modules with on ACL library.
- zenstruck/resource-bundle (v0.1.0)
Provides an easy way to create a RESTful CRUD for your entities.
- zenstruck/slugify-bundle (v1.1.1)
Provides a slugify service and twig filter for Symfony2.
- zenstruck/redirect-bundle (v1.0.1)
Store redirects for your site and keeps statistics on redirects and 404 errors
- zenstruck/mobile-bundle (v2.0.1)
Tools for managing a mobile version of your Symfony2 application
- zenstruck/media-bundle (v0.1.2)
Provides a simple media/file management GUI for Symfony2
- zenstruck/form-bundle (v1.4.1)
- zenstruck/datagrid-bundle (v0.1.0)
Provides a sortable/filterable/paginated datagrid for your entities.
- zenstruck/dashboard-bundle (v0.1.0)
Provides a configurable administration menu and dashboard with customizable widgets.
- zenstruck/content-bundle (v1.3.5)
Simple CMS for Symfony2 using Doctrine2 Class Table Inheritance
- zenstruck/cache-bundle (v1.2.1)
Provides a httpcache warmup command for Symfony2
- fsi/form-extensions-bundle (v1.0.1, v1.0.0)
FSi extensions for Symfony2 form component.
- metamodels/dc_general (0.9.3)
Universal data container for Contao
- orchestra/imagine (v2.0.0)
Imagine Package for Laravel 4
- comperio/silverstripe-framework (22.214.171.124)
The SilverStripe Framework
- bread/mail (v0.2.6)
Bread mail library
- bread/authentication (v0.2.1)
Bread authentication library
- greenball/browser (1.0.2)
Greenball Browser detection package for Laravel 4.
- gloomy/twig-decorator-bundle (0.1)
Twig extension to make conditional layout and to inject variables in templates
- codeblanche/entity (1.4.1)
All for Entity, and Entity for all
- friendsofcake/crud (3.0.9)
CakePHP Application development on steroids - rapid prototyping / scaffolding & production ready code - XML / JSON APIs and more
- hampel/dns (1.0.0)
Generic DNS management API with support for multiple DNS hosting providers
- g4code/clean-core (0.3.0, 0.2.1)
clean-core php library
- fm/swift-bundle (v0.2.3)
Implementation of the OpenStack Swift protocol. Can be used for an object-store.
- fm/cache (v0.1.1)
Library that provides some basic cache classes, as well as an adapter for Guzzle
- hackzilla/bing-api (9.0.0, 8.0.2, 8.0.1)
Classes for Bing Ads web services
- mcfedr/awspushbundle (1.0.0, 0.0.2, 0.0.1)
A set of services to simplify using AWS to send push notifications
- tracy/tracy (v0.9.0)
Debugger for PHP
- trsteel/ckeditor-bundle (v1.4.0)
Symfony2 bundle for easy integration of the CKEditor WYSIWYG
- hpatoio/deploy-bundle (1.4)
Easy deploy via rsync. Porting of Symfony 1 project:deploy command.
- kzykhys/ciconia (v1.0.2)
The Markdown parser for PHP5.4
- menatwork/semantic_html5 (1.1.9)
Create html5 elements as content element
- vinelab/social-auth (3.0.1)
- gloomy/pager-bundle (0.9.6)
Paginator/datagrid/crud bundle for Symfony2 with advanced filtering & sorting
- kitpages/semaphore-bundle (v1.1.0)
This is a Symfony2 bundle that provides a semaphore system.
- gridguyz/core (0.5.2)
Core modules for Gridguyz CMS
- lucadegasperi/oauth2-server-laravel (1.0.4)
A Laravel 4 wrapper for the popular OAuth 2.0 Server package league/oauth2-server
- dispatch/dispatch (2.6.3)
- gigablah/silex-view (0.0.1)
Engine-agnostic view component for Silex
- mjohnson/admin (1.2.0)
A CakePHP admin plugin.
- ivan-novakov/php-haveibeenpwned-client (1.0.1)
A PHP client library and CLI for haveibeenpwned.com
- nicolas/analizer (v0.666, v0.5)
apfelbox's Image iTunes like color analizer with support for Laravel 4 integration
- native5/native5-sdk-client-php (0.3.1)
Native5 PHP Framework for building web applications.
- bit3/contao-meta-palettes (1.5.4)
MetaPalettes extension for Contao OpenSource CMS
December 11, 2013 @ 10:40:41
voice your opinion now!
NetTuts.com has a new tutorial posted today introducing you to Statamic, a PHP-based content management system that uses flat-files instead of database entries to manage its content. (One note, Statamic is not free software and there's no "trial" version)
Statamic is a modern PHP CMS which really makes an effort to be easy and intuitive to use. From its flat-file design to its use of technologies, like markdown and Yaml, you can accomplish an outstanding amount of work without writing any code at all. In this article we will take a look at the process from installation to setting up a basic portfolio.
The CMS (downloadable here) has a simpler structure than some other systems as most of the content is just files in the "_content" directory. They talk some about the directory structure of the tool and help you get things configured via the main YAML config. The post then moves on to working with themes and how to get dynamic content in a basic layout. From there they go on to talk about making new content, adding entries and various other topics like administration and templating.
Don't see your event here?
Let us know!