You searched for symfony

  1. Symfony2 Console: Getting Started with Console Helpers

    Lately, I’ve been spending a significant amount of time working with the Symfony 2 Console Component in order to process different tasks, especially cronjobs. In this tutorial, I’ll share my experiences and we’ll give some extra love to the console helpers, which provide us with a large collection
  2. Getting Started with eZ Platform on Vagrant

    for it if DNS servers don’t resolve it) and enjoy! Diving into EZPublish and Symfony at PHPSummerCamp With the installation done, we can finally dive in and build wonderfully complex systems that even the most demanding websites can’t out-demand. It’s important to be patient
  3. User Authentication in Symfony2 with UserApp.io

    authentication mechanism that leverages UserApp.io. The code we write can also be found in this small library I created (currently in dev) that you can try out. To install it in your Symfony app, just follow the instructions on GitHub. Dependecies In order to communicate
  4. 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
  5. 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->
  6. Building a Custom Twig Filter the TDD Way

    Twig is a powerful, yet easy to master template engine. It is also my personal favorite as all my web development is based on either Symfony or Silex. Apart from its core syntax ({{ ... }} and {% ... %}), Twig has built-in support for various filters. A filter is like a “converter
  7. StackPHP Explained

    code. This usually makes things much easier to understand. What is the HttpKernelInterface? The HttpKernelInterface can be defined as more than one thing. At its most basic level, it is a PHP interface found inside the Symfony HttpKernel component. But it is more than that. It is a modern
  8. Best PHP Framework for 2015 - SitePoint Survey Results

    51 Symfony2 20 Symfony2 19 Portugal 50 Laravel 12 Laravel 17 It’s an interesting trend to observe. Most English speaking countries favor Laravel, while France is loyal to Symfony - it’s own product. Interestingly, an incredibly large percentage
  9. Use Laravel Contracts to Build a Laravel 5 Twig Package

    template engine called Blade. However, I want to use Symfony Twig as my template engine. Blade already offers the possibility to register your own extensions; check the Twig Bridge for more info. Laravel 5 has a better way to achieve the same goal using Contracts, so let’s create our own
  10. 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
  11. Mastering Composer - Tips and Tricks

    , whenever the autoload file is being generated. This is a little bit slower than generating the default autoloader, and slows down as the project grows. Another useful option might be the cache-files-maxsize - in enormous projects like eZ Publish or Symfony, the cache might get full pretty fast
  12. Popular Users per Language and Region with Silex and Github

    of the Silex documentation throughout this tutorial. As you might know, Silex puts its index.php file in the web directory as per Symfony conventions. So, your webroot will actually be ~/Code/silex/web, rather than ~/Code/Laravel/public. Let’s go into the sites section of homestead.yaml and fix
  13. JavaScript and PHP Libraries Used by WordPress

    Almost all modern software (including platforms such as WordPress) rely on third party libraries. That’s because, as developers, we don’t need to reinvent the wheel. If I had to develop software that uses HTTP abstraction, I might use a package like Symfony HttpKernel or similar. If my software
  14. Record Retrieval and Pagination in Bolt CMS

    Bolt is a lightweight CMS built on Silex with Symfony components that’s fast, easy, and fun to develop with. My recent affinity for Bolt has turned it into my CMS of choice as I make a conscious effort to choose wisely and step away from bloated frameworks. Previously, I gave a very detailed
  15. Image Scraping with Symfony's DomCrawler

    ; } setFileName provides an option to change the name of the ZIP file with a default name set to zipImages: public function setFileName($name = "zipImages") { $this->fileName = $name; } At this point, we instantiate the Symfony crawler component to search for images, then download and save all
  16. Generating PHP Documentation with Sami

    config.php is the file that describes your documentation structure and how the output is rendered. Configuration The configuration file must return an instance of Sami\Sami. It accepts a Symfony\Component\Finder\Finder instance and an array of options. // config/config.php $dir
  17. Inspecting PHP Code Quality with Scrutinizer

    based on your project structure. It recognizes many common frameworks and CMSes like Symfony, Zend, Laravel, Drupal, Magento, or WordPress, and will automatically adjust its analysis to match that particular project. Scrutinizer also allows you to change its behavior through a config file
  18. Integrate Elasticsearch with Silex

    the Symfony project. It is in fact using mainly Symfony components but at a more simplified level. Let’s see how we can get started really quickly with a Silex app. There is more than one way. You can add it as a dependency to an existent composer based project: "silex/silex": "~1.2
  19. Set up Automatic Virtual Hosts with Nginx and Apache

    /index.php) and Symfony/Silex based apps (web/app.php) - all depending on the URL format (e.g. mynewsite.sf2local.com could look inside web/ for app.php, as is typical of those frameworks). This tutorial will be Unix-centric, but is Windows-friendly if you use our Homestead Improved box. Before we
  20. Using Github Webhooks with PHP

    the available options in the documentation. Conclusion Here’s a real world example - if you’ve ever contributed to a Symfony project on Github, you’ll have noticed that when you send a pull request, your code is being checked by an external service called fabbot.io. This service
  21. Welcoming New Authors: January - March 2015

    rivaled by his love of ultimate frisbee. He was co-release-manager for PHP 5.3. He is part of the Symfony core team, is co-leading PHPCR and Symfony CMF and has contributed to various parts of the Doctrine project. Lukas wrote a very interesting piece about content organization in CMS where he