A lightweight modular PHP library for creating REST APIs and easing your data management woes.
ed is a lightweight PHP library that eases application development by taking care of all of the low-level data management (database integration, common validation routines, XML and JSON responses) for you. Concentrate on the data-flow of your specific applications and leave the heavy lifting (and boring stuff) to ed.
ed is built as an on-demand library. There is very little necessary configuration and only one file to include in your application code. The config files are loaded along with a tiny static ed class which allows you to load modules as needed in your application. Modules are loaded on each page or function of your application and you only load the modules that you need at any given time.
- Create REST APIs quickly without dealing with database access hassles
- Database interaction is done entirely through PHP DataObjects (PDO)
- Built-in module dependency management ensures you will never get ed library errors
- Useful classes like Object and XML extend PHP's default functionality
- Utilities class that includes common use cases and validation for large-scale applications
- Flexibility to use with any MVC-type application architecture or custom REST API
- And much, much more...
ed works and has been tested on the following software:
ed relies on PHP DataObjects for database access, so this extension must be enabled in your PHP build.
This library is completely open source and available for use for personal and commercial projects free-of-charge.
The primary documentation is split up in to multiple files, due to the size of the overall documentation. You can find these files in the /docs folder, or use the links below to get straight to the documentation for each module in ed.
- ed: Core Library Class
- Core.Form: Form data handlers and helpers
- Core.Object: An extension of PHP's stdClass
- Core.Utils: A static class with lots of validation functions as well as commonly used processes for web development
- Data.Data: NOTE This class has been replaced with
Data.SQLQuery
- Data.Database: A low-level class that handles database connections and interactivity. This class is not accessed directly, but rather via an SQLQuery instance
- Data.SQLQuery: The core class you will interact with when using the ed database functionality. You will define your query parameters here and execute functions to return an SQLResult object.
- Data.SQLResult: The result object that is returned after a database call using SQLQuery
- Data.XML: An extension of PHP's SimpleXMLElement class
- Ecommerce.PSIGate: PSIGate payment module that provides a succinct interface to PSIGate's payment API
- External.ExternalInterface: An easy-to-use module that takes care of the headaches associated with PHP cURL requests.
- ThirdParty.Excel: PHPExcel API module
- ThirdParty.Mailer: PHPMailer API module
- Utils.Canada: Contains arrays of Canadian province and territory codes and names
- Utils.Countries: Contains arrays of all country codes and names
- Utils.FileUpload: Incomplete DO NOT USE
- Utils.USA: Contains arrays of USA state codes and names