sbuckpesch / medium-php-reader
Easy SDK for reading Medium posts of a user by parsing mediums JSON feed.
1.0.5
2017-11-11 21:07 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: 6.0.*
README
medium-php-reader
Easy SDK for reading Medium posts of a user by parsing mediums JSON feed.
Getting Started
$medium = new Medium( '@sbuckpesch' );
$posts = $medium->getPosts();
foreach ( $posts as $post ) {
$data = $post->toArray();
echo $post->getPreviewImage( 600 );
echo date( 'd F Y', $post->getPublishedAt() / 1000 );
}
Installing
Easiest way to add it to your project is by using composer.
composer require sbuckpesch/medium-php-reader
Contributing
Please read [CONTRIBUTING.md] for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Sebastian Buckpesch - Initial work - buckpesch.io
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the [LICENSE.md] file for details