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 ExpressionLanguage
April 10, 2014 @ 12:09:23

The ServerGrove blog has posted the latest in their series focusing on various components in the Symfony2 framework. This latest post looks at the ExpressionLanguage component, functionality that allows you to execute "expressions" easily.

This is the 10th post in our series on Symfony2 components and we will cover the latest component added to Symfony: the ExpressionLanguage component. This component was added in version 2.4 and provides a way to have dynamic aspects in static configurations. For example, it can be used to evaluate expressions in configuration files, create a DSL ,or build a business rules engine.

The tutorial shows you how to get it installed (via Composer) and provides a simple "before" and "after" example, the first using eval and the second using ExpressionEngine to reproduce the same effect. They note that the evaluation of the expression isn't the same thing as compiling it and re-execution will always take the same amount of time. The post then talks about some of the syntax, functions and caching features of the component. It dives a little bit deeper and looks at some of the internals of the component as well.

0 comments voice your opinion now!
symfony2 component expressionengine overview example

Link: http://blog.servergrove.com/2014/04/07/symfony2-components-overview-expression-language/

blog comments powered by Disqus

Similar Posts

KillerPHP.com: Zend Framework Components - Part 1

Chris Hartjes' Blog: The Devilís In The Details (or, Handling Sequences in Postgres in CakePHP)

PHPImpact Blog: From Swift Mailer to Zend_Mail

Hari KT: Aura Framework V2: The Missing Manual

PseudoCoder.com: How To Really Use Xdebug To Speed Up Your App


Community Events





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


opinion configure language framework podcast api series laravel release symfony composer introduction conference voicesoftheelephpant threedevsandamaybe list interview community version unittest

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