Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Jones:
Framework Tradeoffs For Beginners: Product Creation vs Program Maintenance
Jan 22, 2014 @ 11:53:42

Paul Jones has shared some of his thoughts about framework tradeoffs in his latest post. In it he compares two perspectives about framework use for beginners - either the "get something out there" product approach or focusing on the the long term maintenance of the product.

Phil Sturgeon at his blog, writing about product creators who neither know nor care much about programming as a discipline. [...] Phil’s post focuses on the joyful, proud moments of creation that lead to business success, whether in terms of venture funding or continued sales. In this essay, I want to focus on what happens after that, when that initial creation passes into other hands to be maintained.

Paul talks about how frameworks can allow developers to work "beyond their level" and be more productive than they could be otherwise. He points out that this can create a beginner-level codebase that works "just enough" and then is usually passed off to more experienced developers to update, change and flat out fix issues.

From a financial standpoint, and perhaps even from an economic standpoint, it’s easy to see enabling-via-framework as a positive. Indeed, the product creator may justify his failures of good programming practice by substituting the product popularity and continued rounds of funding as a marker of success. [...] But from a programming practices standpoint, enabling-by-framework too often leads to pain and frustration on the part of the maintenance programmers, who are now saddled with the baggage of an amateur.
tagged: framework tradeoff beginner product creation maintenance

Link: http://paul-m-jones.com/archives/5890

Project:
Box - Making Creating PHARs Easier
Aug 24, 2012 @ 10:33:52

There's a new project on Github that wants to help making your phar archives for your PHP applications. The process is a little obtuse right now and Box wants to simplify it.

Box is a library and command line application for simplifying the PHAR creation process. [Features include] creating new PHARs with a simple configuration file, add and replace files in existing PHARs, extract existing PHARs, with option to cherry pick files and verify PHAR signatures.

The project is still relatively young but it looks like it's off to a good start. Phar files are a powerful tool to have in a PHP developer's arsenal but developing them can be a pain. Hopefully something like this can make life easier.

tagged: project phar build manage creation github

Link:

Michael Maclean's Blog:
Using Pango for PHP: a taster
Feb 22, 2011 @ 12:58:27

Michael Maclean has a new article today talking about the Pango graphics library and how it can be coupled with the Cairo PECL extension to more easily create better looking text in dynamic images.

The PECL/Cairo library is pretty good at drawing vector graphics (in our opinion, as the developers, at least!), but one thing it's not able to do by itself is draw text with mildly advanced layout. [...] That's because the developers of the Cairo library decided to let another more specialised library handle the job of text layout.

Michael has created a wrapper for Pango in PHP (github) and some sample code that can be used as a test to ensure it's all setup and working. He steps through each part of the image creation and describes what's happening and what each method is doing along the way.

tagged: pango image creation cairo text render tutorial

Link:

Joey Rivera's Blog:
Automate Db Model Creation with Zend_CodeGenerator_Php_Class
Dec 22, 2009 @ 08:33:06

On the Zend Developer Zone today there's a pointer to a new blog post from Joey Rivera about automating the creation of models in your Zend Framework application via the Zend_CodeGenerator_Php_Class.

This tool has to do a good bit of database manipulation so I've decided I'll build it in PHP using Zend Framework. I'll be using Zend_Db_Table_Abstract to communicate with the db tables from my project and I'll be creating a model for each table as well to store and manipulate data. I'll be working with lots of tables in the database and many have lots of fields.

Because the component lets you dynamically create PHP code, it can easily be used to create the model classes. Joey includes a link to the code you can use to add it into your own projects.

tagged: automate model creation zendframework class

Link:

NETTUTS.com:
How to Create a Wordpress Theme from Scratch: Part 2
Sep 18, 2008 @ 10:29:20

The NETTUTS site has posted the second part of their series looking at the creation of a custom WordPress template. This time they focus on expanding on the previous version, adding additional parts to the theme.

It's time for the good stuff now. We'll be adding the comments system, a sidebar with widgets and an archive for all the old posts. This will cover all that you need for a simple but well functioning WordPress theme, and hopefully you be able to apply this to all sorts of theming projects.

The give the code to create the sidebar (in their instance, an image from Flickr), handling the comments for each post and make the "archive" section to get to some of the older posts.

tagged: wordpress theme custom scratch tutorial creation

Link:

PHPFreaks.com:
The creation of the new site
May 29, 2008 @ 09:31:01

With the successful relaunch of the PHPFreaks.com website recently, Daniel Egeberg wanted to share a little glimpse behind the work that it took to get to that place. In this new blog entry, he talks about the technology, code and design aspects they worked through.

I thought that, seeing as this is a programmer community, the people who have not had the privilege to have access to the forums where these things were discussed or access to the code itself might be interested in knowing a bit about the underlying technology and code that powers this website

Some of the technologies they use include the Zend Framework running on a CentOS with PHP5.2. Some of the highlights in the coding process included updates to Zend_Auth, using Zend_Acl for access management, content management and other various packages (like Zend_Feed, Zend_Form, Zend_Db, etc).

tagged: creation new release website technology zendframework centos

Link:

Kore Nordmann's Blog:
Published article "Image creation with PHP"
Dec 11, 2007 @ 11:11:00

Kore Nordmann has posted a new article series (to the "Articles" section of his site) with six different pieces talking about different aspects of image creation with PHP:

Each of them can be read separately, but they're all part of a series and make more sense when read together.

tagged: image creation article series tools text bitmaps gradient shape format library image creation article series tools text bitmaps gradient shape format library

Link:

Kore Nordmann's Blog:
Published article "Image creation with PHP"
Dec 11, 2007 @ 11:11:00

Kore Nordmann has posted a new article series (to the "Articles" section of his site) with six different pieces talking about different aspects of image creation with PHP:

Each of them can be read separately, but they're all part of a series and make more sense when read together.

tagged: image creation article series tools text bitmaps gradient shape format library image creation article series tools text bitmaps gradient shape format library

Link:

Hardened-PHP Project:
Advisory - PHP unserialize() Array Creation Integer Overflow
Oct 09, 2006 @ 13:41:22

The Hardened-PHP project has just released another advisory about core PHP functionality, specifically in the unserialize function when dealing with arrays.

The PHP 5 branch of the PHP source code lacks the protection against possible integer overflows inside ecalloc() that is present in the PHP 4 branch and also for several years part of our Hardening-Patch and our new Suhosin-Patch.

It was discovered that such an integer overflow can be triggered when user input is passed to the unserialize() function.

You can get the full details from this advisory release including a recommendation to patch the installation until it is corrected in the current distribution.

tagged: advisory unserialize core array creation integer overflow advisory unserialize core array creation integer overflow

Link:

Hardened-PHP Project:
Advisory - PHP unserialize() Array Creation Integer Overflow
Oct 09, 2006 @ 13:41:22

The Hardened-PHP project has just released another advisory about core PHP functionality, specifically in the unserialize function when dealing with arrays.

The PHP 5 branch of the PHP source code lacks the protection against possible integer overflows inside ecalloc() that is present in the PHP 4 branch and also for several years part of our Hardening-Patch and our new Suhosin-Patch.

It was discovered that such an integer overflow can be triggered when user input is passed to the unserialize() function.

You can get the full details from this advisory release including a recommendation to patch the installation until it is corrected in the current distribution.

tagged: advisory unserialize core array creation integer overflow advisory unserialize core array creation integer overflow

Link: