A service wrapper around the Dev.to API
You can install the package via composer:
composer require ronildo-sousa/devto-for-laravel
See the documentation for details
This allows the client to retrieve a list of articles.
DevtoForLaravel::articles()
->get();
you have some options like:
DevtoForLaravel::articles()
->perPage(5)
->get();
DevtoForLaravel::articles()
->withTags(['tag1', 'tag2'])
->withoutTags(['tag3', 'tag4'])
->get();
DevtoForLaravel::articles()
->from('username')
->get();
This allows to retrieve a list of articles. ordered by descending publish date.
DevtoForLaravel::articles()
->latest()
->get();
you can get an article by id:
DevtoForLaravel::articles()
->find(258)
composer test
The MIT License (MIT). Please see License File for more information.