Laravel Service Provider for Medium's SDK for PHP.
jonathantorres/laravel-medium-sdk is a Laravel package for laravel service provider for medium's sdk for php..
It currently has 22 GitHub stars and 3.850 downloads on Packagist (latest version v0.9.0).
Install it with composer require jonathantorres/laravel-medium-sdk.
Discover more Laravel packages by jonathantorres
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Service Provider for Medium's SDK for PHP. Version 9.x of the framework is currently supported. Documentation for the SDK can be found here.
$ composer require jonathantorres/laravel-medium-sdk
Add the Service Provider to your application's config/app.php file. Must be added to the providers array.
'providers' => [
JonathanTorres\LaravelMediumSdk\LaravelMediumSdkServiceProvider::class,
]
This will publish the configuration file to your app's config directory. The location will be config/laravel-medium-sdk.php. Specify your API settings there.
php artisan vendor:publish
Now just resolve the JonathanTorres\LaravelMediumSdk\LaravelMediumSdk class from Laravel's service container and start making requests to Medium's API using your credentials. More details on every method for the SDK can be found here.
// using the App facade
$medium = App::make(JonathanTorres\LaravelMediumSdk\LaravelMediumSdk::class);
// resolving from a controller method
public function index(JonathanTorres\LaravelMediumSdk\LaravelMediumSdk $medium)
{
// use $medium here
}
$ composer test
This library is licensed under the MIT license. Please see LICENSE for more details.
Please see CHANGELOG for more details.
Please see CONTRIBUTING for more details.