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

David Makin:
Creating a simple REST application with Silex part 2
January 24, 2014 @ 12: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.

0 comments voice your opinion now!
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
March 27, 2008 @ 12: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.

0 comments voice your opinion now!
developer blog phprojekt created collaboration software


Matthew Weir O'Phinney's Blog:
Phly Darcs Repository online
June 06, 2006 @ 06: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.

0 comments voice your opinion now!
phly darcs repository created channel pear phly darcs repository created channel pear



Community Events





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


interview language opinion zendserver deployment podcast package install series symfony introduction laravel library update unittest community api release bugfix framework

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