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

David Makin:
Creating a simple REST application with Silex part 2
Jan 24, 2014 @ 18:17:35

David Makin has posted the second part of his series looking at creating a simple REST API with the help of Silex. You can find part one here to get caught up.

In part 1 you installed Silex and setup 2 routes, / and /{stockcode}. Now lets expand upon those by adding a POST and a DELETE route. The 2 routes we created use GET but to make your application truly useful you will want to use at least 1 more type and that is POST.

He starts by adding a new POST route to handle the creation of a new "toy", complete with a correct response of a 200 code (HTTP for "created"). He follows this with a DELETE example, showing how to return a 204 if the delete works or a server error if something goes wrong. He also includes a curl call to test out the endpoints. In the upcoming third part David will look at breaking up the code a bit and putting it into separate files.

tagged: silex rest application tutorial introduction delete created

Link: http://sleep-er.co.uk/blog/2014/Creating-a-simple-REST-application-with-Silex-part2/

ThinkPHP Blog:
Developer Blog for PHProjekt 6 started
Mar 27, 2008 @ 17:53:34

On the ThinkPHP blog today, Ute has posted about a developer blog that has been started up for PHProjekt:

Seven and half years and a lot of downloads later the development team decided that a complete makeover is necessary not only to include more Web 2.0 features but also to add new functions to one of the most popular Open Source Groupware based on PHP. [...] There are still some months left till PHProjekt 6 will be released but for the time being you can follow the progress in a developers' blog started recently.

The blog already has information on the upcoming version (PHProjekt 6) and a first part of a "what's new" series on additions to the project. PHProject is an open source groupware application providing tools like shared calendars, project management and file management.

tagged: developer blog phprojekt created collaboration software

Link:

Matthew Weir O'Phinney's Blog:
Phly Darcs Repository online
Jun 06, 2006 @ 11:19:50

Matthew Weir O'Phinney has this note for those working with the Phly PEAR channel - he's added a darcs repository to manage the contents of the channel.

If you're not familiar with darcs, it's a revision control system, similar to GNU Arch and git; changes are kept as patch sets, and repositories are branched simply by checking them out. This makes darcs repositories very flexible, and incredibly easy to implement. Static binaries are available for most systems, which makes it easy to install on systems to which you have no administrator rights.

There's also a web-based interface to it that uses Perl/XML/XSLT to create it, but he found it a bit constrictive and not customizable at all - so he ported it to PHP (using Cgiapp2), the result being Phly_Darcs.

tagged: phly darcs repository created channel pear phly darcs repository created channel pear

Link:

Matthew Weir O'Phinney's Blog:
Phly Darcs Repository online
Jun 06, 2006 @ 11:19:50

Matthew Weir O'Phinney has this note for those working with the Phly PEAR channel - he's added a darcs repository to manage the contents of the channel.

If you're not familiar with darcs, it's a revision control system, similar to GNU Arch and git; changes are kept as patch sets, and repositories are branched simply by checking them out. This makes darcs repositories very flexible, and incredibly easy to implement. Static binaries are available for most systems, which makes it easy to install on systems to which you have no administrator rights.

There's also a web-based interface to it that uses Perl/XML/XSLT to create it, but he found it a bit constrictive and not customizable at all - so he ported it to PHP (using Cgiapp2), the result being Phly_Darcs.

tagged: phly darcs repository created channel pear phly darcs repository created channel pear

Link:


Trending Topics: