This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require abr4xas/publish-to-dev-to
<?php
require 'vendor/autoload.php';
$articleToPost = [
'article' => [
'title' => 'Hello, World! From the dev.to API',
'body_markdown' => 'This my markdown body text',
'description' => 'Hello, World! From the dev.to API <3',
'cover_image' => 'https://i.pinimg.com/originals/97/90/12/979012800b47e3bb871cae4009333e08.jpg',
'tags' => [
'hello',
'world'
],
],
];
try {
$devTo = (new \Abr4xas\PublishToDevTo\PublishTo('<YOUR_API_KEY>'))
->devToMyArticle($articleToPost);
} catch (\Abr4xas\PublishToDevTo\Exceptions\GenericException $e) {
//
} catch (\GuzzleHttp\Exception\ClientException $e) {
//
}
// todo
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.