News Feed
Sections




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

ServerGrove Blog:
Symfony2 components overview Validator
March 04, 2014 @ 12:55:35

The ServerGrove blog has posted their latest in-depth look at one of the many components that make up the Symfony2 framework. In this latest post they cover the Validator component, another well-used part of the framework.

In the first five posts of this series we have been talking about key components for any PHP framework from the point of view of their internals, such as HttpFoundation to abstract the HTTP protocol, HttpKernel to convert a Request into a Response, Routing to map requests to controllers, EventDispatcher to add reusability and extensibility, and Config to load and validate configuration values. This time we'll delve deeper in the user space to describe a component that is for specific apps rather than just for frameworks. Today's topic will be the Validator component.

They start off talking about a common problem in web applications, running validation on incoming data, and how the component can help. The article then gets into the architecture of the component and provides a simple example of it in use (validating an integer range). They talk about some of the built-in validations, the internationalization support and validation on objects, just just simple values. Finally, there's a look at creating custom validations, their example being a simple check on a given "programming language" string.

0 comments voice your opinion now!
symfony2 component overview validator tutorial

Link: http://blog.servergrove.com/2014/03/03/symfony2-components-overview-validator

blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: Programming a data layer classes

PHPMaster.com: Creating a Mobile Photo Blog, Part 2

Max Horvath's Blog: How to enable the Xdebug debugger in Zend Studio for Eclipse

Nate Turner: Spinning Up Symfony 2 Development Environments With Vagrant

Master Zend Framework: Using Sessions In Zend Framework 2 - Part 1


Community Events





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


api library symfony voicesoftheelephpant tips bugfix opinion package install series introduction laravel community list deployment language framework interview release podcast

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