You searched for symfony

  1. No More var_dump - Introducing Symfony VarDumper!

    Recently, Symfony went from Zend-like bloat and rigidity to extreme decoupling and modularity. With the new Developer Experience initiative, Symfony has done a Laravel-style 180° and dove right into making its components more end-user friendly, its docs more complete, and its AppBundles unbundled
  2. Building and Processing Forms in Symfony 2

    In this tutorial we will look at two examples of using forms in Symfony 2. In the the first, we will place form elements straight in the View file and then handle the form processing manually in the controller. In the second, we’ll use the Symfony form system to declare forms in an object oriented
  3. How to Deploy Symfony Apps with Capifony

    Say you have a Symfony application. At some point, you would like to deploy it to your server and show it to the world. Of course, you can do it all manually, but these days you can also choose to use a tool like Capifony. If you have developed Ruby applications in the past, you are perhaps
  4. Symfony in Drupal 8

    If you are a Drupaler, you must be aware that Drupal 8 is on the way. What you may not know is that it includes a few important Symfony components. Working with Drupal 8.x will give Drupalers an opportunity to become a part of a massive learning curve and is going to tempt them to know more about
  5. Building an Ad Manager in Symfony 2

    Just this once won’t hurt - I am not going to write about Sass but Symfony. I had to do a little bit of backend at work and ended up with an interesting problem to solve, involving quite a lot of things so I thought it wouldn’t be such a bad idea to write an article about it. But first, let
  6. Symfony 2 Checklist for Development and Deployment

    In my Building a Personal Web App Head To Toe With Symfony 2 series published on Sitepoint, I have covered some basics in bootstrapping, development and finalizing (on some advanced techniques) to use Symfony 2 to develop a web application. However, due to the length limitation of the series, we
  7. Learn symfony: a Beginner's Tutorial

    With the release of symfony 1.0, it's time for those who haven't tried it yet to see what's inside this beautiful framework. Stable, fully documented, and released under the open-source MIT license, symfony is used by hundreds of web sites, including some very large ones (Yahoo! Bookmarks, with its
  8. Drupal 8 Hooks and the Symfony Event Dispatcher

    With the incorporation of many Symfony components into Drupal in its 8th version, we are seeing a shift away from many Drupalisms towards more modern PHP architectural decisions. For example, the both loved and hated hook system is getting slowly replaced. Plugins and annotations are taking away
  9. Build your own PHP Framework with Symfony Components

    You’ve probably met Symfony in your PHP career - or have at least heard of it. What you may not know is that Symfony is, at its core, composed of separate libraries called components, which can be reused in any PHP application. For example, the popular PHP framework Laravel was developed using
  10. Symfony Translation: Internationalization Made Easy

    . If no matching translation is found, the original string is returned. Translations are not typically done by programmers. Instead they are done by professional translators. Translators may not have programming knowledge and we may not want to give them code. Luckily, Symfony can use different loaders from
  11. Integrating Polymer/Dart and Symfony - Part 1

    My first four articles for SitePoint are devoted to Symfony (my favorite PHP framework) and Dart (my favorite HTML 5 development tool). In this 2-part series, we are going to look at how to integrate these two powerful tools together, i.e. to run Dart (after compiling to JavaScript) in a Symfony
  12. Understanding Symfony Bundle Configuration and Service Container

    In this post we’ll cover different ways on how to configure Bundles in Symfony2 and how the dependency injection container works with the configuration. The Bundle configuration and Symfony dependency injection container (also known as service container) can be difficult concepts to grasp when
  13. Integrating Polymer/Dart and Symfony - Part 2

    In the previous article, we implemented a Dart widget in our Symfony app. Let's handle the rest now. This might get advanced, so grab a cup of coffee and pay close attention - I recommend you follow along only after completing Part 1! Get around JSONP and display an Object's member
  14. Building a Web App With Symfony 2: Development

    In Part 1, I have shown you how to set up Symfony 2 and link up the database. We also covered some fundamental concepts of the framework. In this part, we will link things up by creating routes, controllers, entities/repositories, and views to get the site up and running. Routes Our instance
  15. Command line PHP using Symfony Console

    . 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. Symfony/Console is a stand alone package that was developed
  16. Building a Web App with Symfony 2: Bootstrapping

    Introduction The Symfony PHP Framework is powerful, scalable and flexible. Yet it is considered by many, especially those new to frameworks, to have a very steep learning curve. This is true to a certain extent. At first glance, Models, Views, Controllers, Entities, Repositories, Routing
  17. Building a Web App with Symfony 2: Finalizing

    In Part 1 and Part 2 of this series, I have covered the basics of using Symfony 2 to develop a functioning web site. In this part of the tutorial, I will cover some more advanced techniques and finish the project with pagination, image watermarks and NativeQuery. The code we'll be using
  18. Getting Started with Symfony2 Route Annotations

    When you download the Standard Symfony 2 Distribution, it includes an interesting bundle named SensioFrameworkExtraBundle which implements a lot of great stuff, especially the opportunity to use annotations directly within your controllers. The idea behind this article is not to convice
  19. Using Traits in Doctrine Entities

    how they can be used with Doctrine ORM in a Symfony Environment. Trait Basics <?php trait ExampleTrait { public function sayHello() { echo "Hello"; } } class A { use ExampleTrait; } class B { use ExampleTrait; } $one = new A(); $one->
  20. PHP News You May Have Missed - October / November 2014

    ), you’ll be up and authing in no time. Ever wanted to make single sign-on a possibility for your apps? Now you can. Symfony Symfony has been on fire for the past few months - what with their developer experience initiative aimed at making Symfony more approachable to newcomers and the flurry
  21. 9 reasons to consider eZ Publish CMS for your next web project

    Introduction With the recent refactoring of eZ Publish content management system as a full stack Symfony application it should be interesting for a broader PHP public to consider it as a content management solution. We at Netgen have been using it for almost a decade and would like to share our