njaaazi / laravel-breaking-bad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a laravel wrapper for Breaking Bad Api.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is my package laravel-breaking-bad, a breaking bad api wrapper for laravel.

Installation

You can install the package via composer:

composer require njaaazi/laravel-breaking-bad

You can publish the config file with:

php artisan vendor:publish --tag="laravel-breaking-bad-config"

This is the contents of the published config file:

return [
    'baseUrl'	=> env('BREAKINGBAD_BASE_URL') ? env('BREAKINGBAD_BASE_URL') : 'https://www.breakingbadapi.com/api/',
];

Usage

Using the application container

$breakingBad = new Njaaazi\BreakingBad\BreakingBad();
$breakingBad->quotes()->random();

Using the facade

BreakingBad::quotes()->random();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

License:MIT License


Languages

Language:PHP 100.0%