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

This package is auto-updated.

Last update: 2024-11-04 22:03:22 UTC


README

Build Status

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

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

Acknowledgments