background preloader

Php

Facebook Twitter

Home · facebook/hiphop-php Wiki. Practical REST - Hypermedia Application Development with Symfony. Benjamin Eberlei , Lukas Kahwe Smith (23.Nov.2012 at 14:40) Talk at Symfony Live Berlin 2012 (English - US) If you follow the Symfony documentation by the book you don't get many hints on how to develop complex REST/Hypermedia applications.

Practical REST - Hypermedia Application Development with Symfony

Without a little abstraction of yourself you will end up with huge controllers and applications that are not testable and don't allow RAD. This talk discusses conventions and bundles that allow you increase development speed and still end up with separated concerns. Topics included are controller helpers, routing, serialization, service-layers, views and persistence. Quicklink: Slides: Practical REST - Hypermedia Application Development with Symfony By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event. If the claim is approved you will be able to edit the information for this talk.

Are you sure? REST APIs with Symfony2: The Right Way. 2014-02-14 - PATCH should not be used the way it has been described here. 2013-04-12 - Add an example on how to create new resources with PUT. 2013-04-11 - PUT/PATCH methods should not return a Location header in the context of this blog post, as PUT is used to update an existing resource only, so it naturally returns a 204 status code.

REST APIs with Symfony2: The Right Way

Designing a REST API is not easy. No, really! If you want to design an API the right way, you have to think a lot about everything, and either to be pragmatic or to be an API terrorist. This article will sum up everything I learnt by building different APIs, and how I used Symfony2, the FOSRestBundle, the NelmioApiDocBundle, and Propel. Do you speak…? An API is used by clients. Actually, you also need to know how to talk to them too, and in the HTTP protocol, there is something named the Accept header. Thanks to the FOSRestBundle, everything is done for you. GET what? In 5 minutes. Inicio · facebook/hiphop-php Wiki. CodeIgniter - Open source PHP web application framework. Laravel - A Clean & Classy PHP Framework. PHP: Simple compression of JSON data. Pages · EllisLab/CodeIgniter Wiki. Create a REST API with PHP « Gen X Design.

Your apps never had it so good One of the latest (sort of) crazes sweeping the net is APIs, more specifically those that leverage REST.

Create a REST API with PHP « Gen X Design

It’s really no surprise either, as consuming REST APIs is so incredibly easy… in any language. It’s also incredibly easy to create them as you essentially use nothing more than an HTTP spec that has existed for ages. One of the few things that I give Rails credit for is its well thought-out REST support, both for providing and consuming these APIs (as its been explained by all the Rails fanboys I work with). Seriously, if you’ve never used REST, but you’ve ever had to work with (or worse, create) a SOAP API, or simply opened a WSDL and had your head explode, boy do I have good news for you! So, What on Earth is REST? Before we get into writing some code, I want to make sure everyone’s got a good understanding of what REST is and how its great for APIs. Requests All APIs need to accept requests.

Getting Started with REST and PHP So, let’s dig in!