PHP Restful Frameworks
Get flash to fully experience Pearltrees
Examples and tutorials Applications examples A Classical blog example with pdo Wikir , a simple text file-based wiki example, by Fabrice Luraine and Mathias Standaert.
Apify is a small and powerful open source library that delivers new levels of developer productivity by simplifying the creation of RESTful architectures. You can see it in action here . Web services are a great way to extend your web application, however, adding a web API to an existing web application can be a tedious and time-consuming task. Apify takes certain common patterns found in most web services and abstracts them so that you can quickly write web APIs without having to write too much code. Apify exposes similar APIs as the Zend Framework, so if you are familiar with the Zend Framework, then you already know how to use Apify. Take a look at the UsersController class.
I have seen 1 or 2 RESTful implementations for CodeIgniter but the syntax and methodology for each of them left me feeling like it could be done better. Firstly , REST is not something that can be put into a library. It is not a "thing" and cannot be treated as such. Secondly , REST calls should not be mixed in with your normal controllers. It should be kept separate from your normal controllers as they are not the same.
CodeIgniter is becoming well known for its power as a PHP based web application framework, but it’s not often that we see examples of it being used for anything else.
The Book of Recess Official Guide to the Recess PHP Framework Copyright Â© 2009 The Recess PHP Framework Table of Contents 1.
Today's post is a quick, simple tutorial for kicking off a new Recess Application. We'll start with the automated New App Wizard in Recess Tools, and then we’ll walk through step-by-step what this wizard has done to set up a new application. The New App Wizard in Recess Tools To stay true to programming pedagogy let’s create a dynamic “Hello World!” application. Lets open up Recess Tools in a browser by navigating to the directory you installed recess to, /recess.
After building a couple of RESTful services using the Zend Framework , I decided to create a dead simple REST server that allowed me to skip all the features I didn’t need as well as a tons of classes that came with Zend Framework MVC. There are still useful features to add (XML support for example), but overall I’m quite happy with what I’ve come up with. My solution, RestServer , is a JSON REST server, so far. It should be trivial to add support for XML or other formats, but there would have to be assumptions on what your object would look like in XML (XML-RPC style, your own custom XML format, etc). First we’ll look at the classes that you write to handle the requests, then we’ll look at how to tie it together in your index.php file.
Comparte este artículo! Epiphany es un “micro” framework rápido, claro y de fácil uso para crear servicios RESTful usando PHP . Es muy simple pero muy poderoso a la vez, permite a los desarrolladores crear servicios REST en muy poco tiempo . Epiphany es un proyecto open source que podemos descargar desde GitHub , para comenzar a usarlo debemos obviamente tener instalado PHP5+ y mod_rewrite en nuestro servidor Apache . Comenzar con Epiphany es realmente fácil, primero instalamos el framework descomprimiendo el archivo que descargamos previamente en una carpeta (por ejemplo: /testepiphany ) en nuestro servidor y con eso estaríamos en condiciones de comenzar a trabajar y probarlo. En el sitio contamos con muy buena documentación y ejemplos , así que veamos uno completo y funcional, para eso debemos crear un archivo index.php
Tonic is an open source less is more, RESTful Web application development PHP library designed to do things " the right way ", where resources are king and the library gets out of the way and leaves the developer to get on with it. To understand Tonic, you need to get the Web, so forget everything you know for a minute and think about how the Web really works, it's not about HTML pages, it's about resources:
I talk a lot to people about REST, but with the acronym having become a commonplace among Web folk, I often find myself having to explain that what they have read about as REST or think of as REST is actually POX, HTTP-RPC or whatever you want to call it. I'm also an advocate of the idea that REST isn't just about "Web services" but is also a good model for building fast sustainable Web applications. As such, in my quest to educate the ideas of REST, today I want to outline a different way to build Web apps, a RESTful way, an alternative to the popular MVC model, a model I call RMR, or Resource-Method-Representation. Model-View-Controller The current popular way of building Web applications is using the MVC pattern. This pattern separates the application into three parts:
24 September 2007 by Ian Davis I dug up some links on the mismatch between MVC and the Web: It’s hard to explain in simple terms why MVC is such a poor pattern for web development. I don’t claim any particular success in converting people away from the lure of GUI patterns but in my experience the hardest task is resetting people’s internal model of a web “application”.
This tutorial demonstrates the typical process for writing a Slim Framework for PHP 5 web application. The Slim Framework for PHP 5 uses the front controller pattern to send all HTTP requests through a single file — usually index.php . By default, Slim comes with a .htaccess file for use with the Apache web server.
There’s a neat little framework for Ruby called Sinatra that makes it simple to configure REST-style API endpoints with just a smidgen of glue code. But why, asked PHP developer Josh Lockhart , should Ruby devs have all the fun? Josh has been busy these past few months creating his own PHP-based REST DSL (Domain-Specific Language) called Slim .