dev-master
9999999-devA wrapper over irkfdb-php-client for laravel
MIT
The Requires
The Development Requires
by Swapnil Sarwe
Wallogit.com
2017 © Pedro Peláez
A wrapper over irkfdb-php-client for laravel
It is a wrapper package made on top of irkfdb-php-client for laravel., (*1)
IrkfdbLaravel requires PHP 7.0 and above. This particular version supports Larave 5.5 and above., (*2)
To get the package, simply require using composer, (*3)
composer require irkfdb/irkfdb-laravel-package
If automatic package discovery is not used in the project then you need to register the service provider of this package in config/app.php, (*4)
'provides' => [
...
\Irkfdb\IrkfdbLaravel\IrkfdbLaravelServiceProvider::class,
...
]
and you can optinally alias our facade, (*5)
'aliases' => [
...
'IrkfdbLaravel' => \Irkfdb\IrkfdbLaravel\IrkfdbLaravelFacade::class
...
]
use IrkfdbLaravel;
class TestController {
public function index()
{
$categories = IrkfdbLaravel::getCategories();
$randomFact = IrkfdbLaravel::getRandomFact();
}
}
You can run the test cases by running the following command, (*6)
./vendor/bin/phpunit --configuration phpunit.xml
A wrapper over irkfdb-php-client for laravel
MIT