2017 © Pedro PelĂĄez
 

library prices

image

germania-kg/prices

  • Tuesday, October 25, 2016
  • by germania-kg
  • Repository
  • 2 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Germania KG · Prices

Packagist PHP version Build Status Scrutinizer Code Quality Code Coverage Build Status, (*1)

This package was destilled from legacy code!
You better do not want it to use this in production., (*2)

Installation

$ composer require germania-kg/prices

MySQL: This package requires a MySQL table germania_prices which you can install using germania_prices.sql in sql/ directory., (*3)

Usage

PdoPrices is a Callable for retrieving prices for any given article ID. It implements the container-interop (upcoming PSR 11 standard)., (*4)

has( 42 );

// Getting may throw NoPriceFoundException
// Interop\Container\Exception\NotFoundException)
$prices = $prices_factory->get( 42 );


// Avoid Exception using __invoke:
// Returns always array, may be empty:
$prices = $prices_factory( 42 );


?>

Development

$ git clone https://github.com/GermaniaKG/Prices.git
$ cd Prices
$ composer install

Unit tests

Either copy phpunit.xml.dist to phpunit.xml and adapt to your needs, or leave as is. Run PhpUnit test or composer scripts like this:, (*5)

$ composer test
# or
$ vendor/bin/phpunit

The Versions

25/10 2016

dev-master

9999999-dev

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Carsten Witt

25/10 2016

dev-develop

dev-develop

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Carsten Witt

25/10 2016

1.0.0

1.0.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Carsten Witt