PHP Classes
elePHPant
Icontem

Notable PHP package: PHP CRUD REST API Server

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author: Manuel Lemos

Posted on:

Categories: Notable Packages

Nowadays, many sites provide an API, especially when they have a mobile application that needs to store and retrieve information from the site.

Many APIs provide function calls that execute CRUD operations (Create, Retrieve, Update and Delete) with data stored in a database.

This PHP package provides a solution to simplify all those goals. It provides means to easily create a REST API with functions that map to class methods.

At the same time it provide means to implement CRUD operations with a MySQL database.

The demonstration API provided with the package shows how you can easily implement an API to manipulate user records stored in a MySQL database.

Read this article to learn more details about how this notable PHP package works.




The package PHP CRUD REST API Server is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: REST API server with MySQLi based CRUD operations

Here follows in more detail what it does:

This class can be used to implement a REST API server with MySQLi based CRUD operations.

It provides a base class that can connect to a MySQL database server using MySQLi and execute basic CRUD operations like creating, retrieving, updating and deleting records from a given table.

The REST server class itself extends the base CRUD class and processes requests looking for the requested API function. It dispatches the request if the function exists, or return a 404 response if it does not exist.

The REST class can also retrieve the request parameter data for HTTP GET, POST, PUT and DELETE methods, as well process the API call response setting the appropriate headers and HTTP status.

Applications implementing the API just need to extend the REST server class and implement the supported API calls as class methods.

A demonstration API class is provided to show how to implement a API to manage users with records stored in a database.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.

You need to be a registered user or login to post a comment

1,383,757 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)