News Feed
Sections




News Archive
feed this:

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

Symfony Blog:
Improving REST in Symfony
July 11, 2014 @ 12:15:56

On the Symfony blog there's a recent post about a new effort being started to help improve REST in Symfony-based applications. William Durand talks about some of the current tools and some of the missing features/difficulties each has. This effort wants to help change that.

Building APIs with Symfony is not new. We've done that since the early beginning of Symfony: Askeet, Jobeet, it's been a long time! Nowadays, more and more web applications are made of an API and a client side application. Sharing data across applications using APIs also became an essential feature. [...] For most of us, it is not as clear as it should be, and we can certainly do better than what we have right now! Hence the creation of a working group to gather both people and knowledge for REST in Symfony: https://groups.google.com/forum/#!forum/resting-with-symfony.

The target of the group is just about anyone associated with the development of APIs: developers who build them, developers to contribute to Symfony's REST functionality, people with questions about REST and, really, anyone else interested. It's a part of their wider developer experience initiative they've recently ramped up.

0 comments voice your opinion now!
developer experience rest discussion group symfony framework

Link: http://symfony.com/blog/improving-rest-in-symfony

Symfony Blog:
First Online Symfony Community Hack Day July 5th!
July 01, 2014 @ 11:58:07

On the Symfony blog today Ryan Weaver has posted a note about the first ever Symfony online community hack day coming up on July the 5th.

Last week, I talked about the Symfony Experience, and announced a new Developer Experience Initiative. [...] And now it's time to put our ideas into action, with the first community hack day on July 5th. This hack day is for everyone and we'll focus on tasks from all around the Symfony world: the core code and third party bundles. This is our chance to really push on things that never quite get done as well as they could: third party bundle documentation, exception messages, shortcuts, etc.

The event will be happening on July 5th from 9am to 8pm Central European Time (3am to 2pm Eastern time in the US) and will be run from the #symfony channel on the Freenode IRC network. There'll be plenty to do, so if you're interested in getting involved, reach out to Ryan or Javier once you're on and they can point you in the right direction. More information can be found on the Symfony blog.

0 comments voice your opinion now!
symfony blog community hackday july2014 developer experience

Link: http://symfony.com/blog/first-online-symfony-community-hack-day-july-5th

Matthias Noback:
Symfony2 Framework independent controllers parts 2 & 3
June 19, 2014 @ 09:45:34

Matthias Noback has posted the next two parts of his "framework independent controllers" series (it started here) looking at avoiding annotations and tying up some loose ends.

From part two about annotations:

In the previous part of this series we decreased coupling of a Symfony controller to the Symfony2 framework by removing its dependency on the standard Controller class from the FrameworkBundle. Now we take a look at annotations. They were initially introduced for rapid development (no need to create/modify some configuration file, just solve the issues inline!) [...] This might not seem such a big problem at all, but the SensioFrameworkExtraBundle is a bundle, which means it only works in the context of a Symfony2 application. We don't want our controller to be coupled like this to the framework (at least, that is the point of this series!), so we need to remove the dependency.

He shows how to decouple this functionality through a proper routing configuration, fetching the needed data yourself for the request and generating the request object yourself. In part three he covers some of the comments already made about the series and how to take the final steps to abstracting out the controllers: removing bundle names from templates, removing the HttpFoundation dependency and letting go of "action methods".

0 comments voice your opinion now!
controller independent symfony series part2 part3

Link: http://php-and-symfony.matthiasnoback.nl/tags/controller/

Symfony Blog:
Making the Symfony Experience *Exceptional*
June 18, 2014 @ 12:52:34

In this new post to the Symfony blog Ryan Weaver talks about some steps the project is making to help improve the "developer experience" (DX) around using the framework. There's four things listed that they're trying out to see if they can improve the framework even more.

When Symfony was released, we (the community) thought a lot about the Symfony experience: working on documentation, improving error messages and creating open source bundles. But since then, innovation has slowed down and the Symfony experience has stopped evolving. Today, the Symfony Framework is still the highest quality PHP Framework available. But the Symfony experience has stagnated. The good news is that improving the developer experience is easy, and it involves you!

He includes the "four easy steps" that any developer using Symfony can follow to help out the development team and make things even easier (and more intuitive) to use:

  • The DX (Developer Experience) Label (on the Symfony issues list on GitHub)
  • Adding a suggested DX Label for your own repository
  • Working on DX issues at a Community Hack Day
  • Being Aggressive, Focusing on Beginners
0 comments voice your opinion now!
symfony framework community developer experience

Link: http://symfony.com/blog/making-the-symfony-experience-exceptional

Community News:
Sound of Symfony Podcast, Episode 1
June 06, 2014 @ 09:56:48

A new podcast has joined the list of things for your PHP-related listening pleasure, the Sound of Symfony podcast. This new show, hosted by Magnus Nordlander and Tobias Nyholm, focuses in on the Symfony ecosystem and things that revolve around it. They're already posted their first episode too - Episode 1 - The one where we're audio production noobs.

In our first episode, coming to you straight from a small conference room in Stockholm, Sweden, we go through the news, interview a prominent community member, and run through the conference calendar for the year. Of course, since this is our first episode, it has some mandatory audio production mistakes, we're sorry about those. Nothing too horrible, you might not even hear it, but we'll always know it's there, and we'll make sure to do better next month!

You can listen to this first episode through the in-page player or you can just subscribe to their feed and get this and future shows as they're released.

0 comments voice your opinion now!
soundofsymfony podcast ep1 audio noobs symfony framework

Link: http://www.soundofsymfony.com/episode/episode-1

SitePoint PHP Blog:
Image Scraping with Symfony's DomCrawler
March 31, 2014 @ 09:06:43

On the SitePoint PHP blog today there's a new post showing you how to use the Symfony DomCrawler component to scrape content, images mostly, from a remote website. The DomCrawler is one component of the Symfony framework.

A photographer friend of mine implored me to find and download images of picture frames from the internet. I eventually landed on a web page that had a number of them available for free but there was a problem: a link to download all the images together wasn't present. I didn't want to go through the stress of downloading the images individually, so I wrote this PHP class to find, download and zip all images found on the website.

He talks briefly about how the class works and then gets into the contents of the class. He walks through all the code and explains in chunks what each part does in the lifecycle of the request. The end result is a Zip archive file of all images from the remote website, packaged up for easy transport.

0 comments voice your opinion now!
domcrawler symfony framework component tutorial image scrape

Link: http://www.sitepoint.com/image-scraping-symfonys-domcrawler/

The Nerdery:
NerdCast #93 Developer Download Symfony Edition
March 24, 2014 @ 11:20:01

The Nerdery has posted the latest episode in their "NerdCast" podcast series. Usually their shows center around other types of web technology, but this time they're talking about Symfony in this "Developer Download".

Today on the Developer Download we are talking about the web framework Symfony. It's a popular tool here at The Nerdery; in fact, it's our go-to framework for custom PHP projects. Listen in as we talk with 3 Nerdery Symfony experts, covering what Symfony is, what it isn't, news, libraries and more.

Host Andrew Watson talks with a few guests (also Nerdery employees) about the framework (or is it a framework?), what it is and what it's not. They also talk about some of their own history with the framework. You can listen to this latest episode either through the in-page player or you can download the mp3 directly.

0 comments voice your opinion now!
nerdcast ep93 developerdownload symfony framework

Link: http://blog.nerdery.com/2014/03/nerdcast-and-developer-download/

Paul Jones:
Leanpub Sample Files With Symfony and Aura
February 27, 2014 @ 09:51:49

In a recent post to his site Paul Jones shares some work that's been done to help generate books in the Leanpub formatting with an Aura framework-based script.

One of the things that bothers me about some cli/console packages is how the commands you write with them end up being tightly coupled to the "framework" the package provides. [...] Most of the time I don't need a "full console application" - I just need to read some input for the command, run my actual command logic, and send some output from the command. The Leanpub Sampler from Matthias Noback is an example of the kind of thing I usually end up doing in small or one-off projects.

The script makes use of the Aura.Cli component for console interaction then a custom object for the actual work. This completely decouples the CLI handling from the code to produce the resulting document. You can find out more about the Aura framework on the project's main site.

0 comments voice your opinion now!
leanpub sample file symfony aura auracli

Link: http://paul-m-jones.com/archives/5921

SitePoint PHP Blog:
Understanding Symfony Bundle Configuration and Service Container
February 04, 2014 @ 10:46:03

The SitePoint PHP blog has a post today for those that may be new to the Symfony framework or just wanting to get into it and having trouble understanding bundle configuration. In this new post Carl Vuorinen walks you through this process, combining an example bundle with its configuration.

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 first starting development with Symfony2, especially if dependency injection is not a familiar concept beforehand. [...] I am used to working with YAML because I think it's more readable than XML, but you do get the benefit of schema validation when using XML.

He briefly introduces the concepts behind "bundles" in Symfony and two ways to create one - either via the generator on the command line or manually. He also shows two ways to get a bundle's configuration loaded. There's the "easy way", configuring it inside the main "confix.yml", or the slightly harder way of adding a configuration file inside the bundle structure itself and using the "get" method to grab the values manually. With the location(s) of the configuration defined, he gets into the contents of the file and its structure. Finally, he shows the complete example, an "ExampleBundle" with a "greet" method that accepts the configuration value from the "cvuorinen_example.greeter" setting.

0 comments voice your opinion now!
symfony bundle configuration container service tutorial introduction

Link: http://www.sitepoint.com/understanding-symfony-bundle-configuration-service-container

SitePoint PHP Blog:
Integrating Polymer/Dart and Symfony - Part 2
January 21, 2014 @ 13:05:11

On SitePoint's PHP blog Taylor Ren has posted the second part of his series looking at integrating Polymer/Dart and the Symfony framework to make a simple browser-based widget. The first part of the series can be found here.

If the server (and thus the configuration, the programming) is managed by ourselves, the process to get data from a RESTful API from that same server will be simple. We can enable CORS in the returned response header. Done! But if the remote server's RESTful API does not set that header, we will face a CORS error when we try to invoke that API call from within the Dart app.

He offers one solution - JSONP - but dismisses it because of its "hacky nature". Instead he opts to use the PHP (Symfony) side to grab the data from the remote feeds and pull it into the local domain for the widget to fetch. Code for both the client side and server side functionality are included as well as the HTML markup to create the page for the widget.

0 comments voice your opinion now!
polymer dart tutorial symfony javascript part2 widget

Link: http://www.sitepoint.com/integrating-polymerdart-symfony-part-2


Community Events





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


series unittest symfony2 refactor list code opinion laravel community testing configure introduction framework podcast release install language interview developer threedevsandamaybe

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