News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Fabien Potencier's Blog:
Create your own framework... on top of the Symfony2 Components (part 8)
January 17, 2012 @ 09:39:26

Fabien Potencier has posted the eighth part in his "building a framework on Symfony2 components" series. So far he's created a full-featured microframework with routing, controllers, HTTP handling and namespaced code. In this latest part he improves the sample framework by adding some unit tests.

Some watchful readers pointed out some subtle but nonetheless important bugs in the framework we have built yesterday. When creating a framework, you must be sure that it behaves as advertised. If not, all the applications based on it will exhibit the same bugs. The good news is that whenever you fix a bug, you are fixing a bunch of applications too. Today's mission is to write unit tests for the framework we have created by using PHPUnit.

He includes the XML for a basic phpunit.xml configuration file and uses a UrlMatcher and ControllerResolver in a "Framework" class and makes the test check for "not found" URLs and for checking for a correct Response.

0 comments voice your opinion now!
symfony2 framework custom components tutorial series unittest



Fabien Potencier's Blog:
Create your own framework... on top of the Symfony2 Components (part 7)
January 16, 2012 @ 08:46:22

Fabien Potencier has posted the seventh part of his series looking at how to make a custom framework on top of the components from the Symfony2 framework. In this part of the series he improves his basic framework by adding some namespacing to organize the application a bit more.

If you have a closer look at the code, front.php has one input, the Request, and one output, the Response. Our framework class will follow this simple principle: the logic is about creating the Response associated with a Request. As the Symfony2 components requires PHP 5.3, let's create our very own namespace for our framework: Simplex.

He puts the main front controller in just the "Simplex" namespace but adds in others for the controllers and models. He also updates his Composer configuration to create some PSR-0 autoloading.

0 comments voice your opinion now!
symfony2 components framework custom tutorial series namespace autoload


Fabien Potencier's Blog:
Create your own framework...on top of the Symfony2 Components (parts 3 & 4)
January 09, 2012 @ 09:31:55

Fabien Potencier has posted the third and fourth parts of his "Build a framework on top of Symfony2 components series to his blog:

  • Part three adds on another page to the sample site, creating a front controller and changing the output to use "setContent()" instead of just echoing the data.
  • In part four he refactors the code to be a bit more readable, adds in the Symfony2 Routing component to correctly get the requests to the right controller and an example of how to generate routes based on route definitions.

You can find the other parts of the series here: part one, part two.

0 comments voice your opinion now!
symfony2 framework custom components tutorial series


Fabien Potencier's Blog:
Create your own framework... on top of the Symfony2 Components (part 2)
January 05, 2012 @ 08:11:27

Fabien Potencier is back with the next installment of his "Building a framework on top of Symfony2" tutorial series with this look at using the HttpFoundation component to use the Request and Response classes to handle HTTP interaction. (Part one is here.)

The first step towards better code is probably to use an Object-Oriented approach; that's the main goal of the Symfony2 HttpFoundation component: replacing the default PHP global variables and functions by an Object-Oriented layer.

He shows how using this component not only makes OOP handling of requests/responses simpler, but also helps to make your application more secure through features already included in the HttpFoundation component. Sample code is included showing how to fetch the current request, get filtered values from the superglobals (GET/SERVER/etc) and how to respond with a refactored version of the "Hello world" message from the previous example.

0 comments voice your opinion now!
symfony2 components framework custom tutorial series httpfoundation


Symfony Blog:
Symfony2 PEAR Channel
June 27, 2011 @ 14:16:20

Fabien Potencier has a new post to the Symfony blog today - an announcement about the setup of a PEAR channel to make it easier to grab the various Symfony components individually.

One of the strengths of Symfony2 lies in its components; they define the building blocks of the framework and they can be used as standalone libraries. [...] The Symfony2 components have been available on Git for quite some time now, and as of today, I'm really excited to announce that they are also installable via the brand new Symfony2 PEAR channel, powered by Pirum of course.

Packages included in the list installable on the PEAR channel include:

0 comments voice your opinion now!
symfony2 pear channel components libraries


Community News:
eZ Components Release Candidate 2008.2
December 15, 2008 @ 12:07:15

eZ Components, the enterprise-ready library of PHP components (that can be used together or separately for PHP applications has made a new release candidate available for download:

The eZ Components team just released a release candidate of the new 2008.2 release. This release candidate resolves a couple of issues that where found during the testing and review process. The release candidate can be installed by running the following command: pear upgrade ezc/ezcomponents

You can also download the full package from the downloads page on the eZ Components site. Check out the release announcement for more information on whats been updated.

0 comments voice your opinion now!
ezcomponents components release candidate download


Zend Developer Zone:
Zend Framework 1.7.0 is now available
November 18, 2008 @ 08:15:12

The latest version of the Zend Framework, 1.7.0, has officially been released:

The Zend Framework team would like to thank everyone who made this release possible. As always, our generous ZF community has provided countless new features, bug fixes, documentation translations, etc. We'd also like to thank Adobe Systems and Wade Arnold for contributing the new Zend_Amf component. A big thanks to PHP Belgium and everyone who participated in bug hunt day and/or the Zend Framework bug hunt week.

This update includes lots of new components and features such as: an update to Dojo, Zend_Service_Twitter, support for Open Office Documents in the Zend_Search_Lucene component, Zend_ProgressBar, I18N improvements and much, much more. Check out the full list on this post on the Zend Developer Zone or just head over the download the latest edition.

You can also check out some of Matthew Weier O'Phinney's comments over on his blog as well as thoughts from Zend's own Andi Gutmans on his blog.

0 comments voice your opinion now!
zendframework version 170 release updates components features


Smashing Magazine:
Drupal Developer's Toolbox
September 25, 2008 @ 09:33:26

Smashing Magazine has put together a new post that provides a "Drupal Developers Toolbox" with links to resources all over the web.

After publishing the recent WordPress Developer's Toolbox, there were several Drupal developers calling out for equal coverage. In this post you will find a thorough collection of all kinds of resources that will aid designers and developers working with Drupal-powered websites. This collection is intended to simplify your tasks and save you time when working with Drupal.

They've broken it out into some of the basic components you might need, modules, a few sites offering some design inspiration, themes, tutorials and more.

0 comments voice your opinion now!
drupal developer toolbox modules components themes


Derick Rethans' Blog:
eZ Components 2006.2 released!
December 19, 2006 @ 07:05:49

According to this announcement over on Derick Rethans' blog today, the latest version of the eZ Components framework has been released - 2006.2.

I am proud to announce the most recent release of the eZ Components and would like to thank the team and the contributors for their dedication in the past few months. The new version of the eZ Components, 2006.2, comes with three brand new components: Graph (pictured on the right), SignalSlot and Url.

Other enhancements for the new release include updates to the Mail component (IMAP functionality), database support enhancements and much more. Check out the full announcement for more details or just head to the download page to grab the latest.

0 comments voice your opinion now!
ezcomponents release version components graph signalslot url ezcomponents release version components graph signalslot url


Tobias Schlitt's Blog:
eZ components on Ohloh
October 24, 2006 @ 08:27:00

Tobias Schlitt, on the heels of the "PHP Eats Rails for Breakfast" posting on Ohloh has helped Sebastian Bergmann get the eZ components project entered into their database for some tracking with some interesting results.

eZ components consists of 171,025 lines of code (including markup and code itself). If you subtract the XML, eZ components consist of 96,424 lines of pure PHP code (no docs included, if I got it correcltly), which is rather much in my eyes.

He gives other stats for the component framework including a price estimate for manhours put into the project and how much, on a per-developer basis, has been contributed to each (including things like a code to documentation ratio and total lines of code contributed).

0 comments voice your opinion now!
ohloh statistics ez components project manhours contribute ohloh statistics ez components project manhours contribute



Community Events





Don't see your event here?
Let us know!


conference phpunit development api interview release framework manifesto application podcast symfony2 series unittest package test introduction custom opinion language community

All content copyright, 2012 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework