2017 © Pedro Peláez
 

library eads

PHP Utility for EADS APIs

image

aaronbullard/eads

PHP Utility for EADS APIs

  • Friday, November 17, 2017
  • by aaronbullard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 675 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 75 % Grown

The README.md

Maintainability, (*1)

EADS Utility

PHP Utility for Enterprise APIs for Data Sharing Standard, (*2)

https://eads.540.co/, (*3)

Filtering

This is a helper class to translate a string of filters into usable sql., (*4)

Example query: - ?filters=status==verified,age>18,weight>=<150;200, (*5)

This query translates to: - WHERE status = 'verified' - AND age > 18 - AND weight BETWEEN 150 AND 200, (*6)

Installation

composer require aaronbullard/eads

Usage

See the tests for usage and examples /tests, (*7)

// GET `?filters=status==verified,age>18,weight>=<150;200`

$filterString = Request::get('filters');

$parser = new EADS\Filters\Parser($filterString);

// Get first query
$filter = $parser->getFilters()[0];
$sql = $filter->getSQL(); // "status = ?"
$bindings = $filter->getBindings(); // ['verified']

or, (*8)

// GET `?filters=status==verified,age>18,weight>=<150;200`

$filterString = Request::get('filters');

$filters = EADS::filters($filterString);

// Get first query
$filter = $filters[0];
$sql = $filter->getSQL(); // "status = ?"
$bindings = $filter->getBindings(); // ['verified']

License

The package is available as open source under the terms of the MIT License., (*9)

The Versions

17/11 2017

dev-master

9999999-dev

PHP Utility for EADS APIs

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Aaron Bullard

17/11 2017

1.0

1.0.0.0

PHP Utility for EADS APIs

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Aaron Bullard

17/11 2017

dev-develop

dev-develop

PHP Utility for EADS APIs

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Aaron Bullard