The config file will now be located at config/medium.php.
This is the medium.php file in the config directory. Go to your medium settings page,
and generate an access token also known as integration token. Integration tokens do not expire right now, though they may be
revoked by the user at any time.
/** * Config file that a user/developer can insert the self-issued access token */return [
'integrationToken' => ''
This is the class of most interest. It is bound to the ioc container as 'laravel-medium' and can be accessed using the Facades\Medium facade.
This facade will dynamically pass static method calls to the 'laravel-medium' object in the ioc container which by default is the MediumManager class.
Here you can see an example of just how simple this package is to use.
// or you can alias this in config/app.php like I mentioned initially aboveMedium::me()->id;
// returns the id of the medium user that can be used for future requests e.g 13889cdb2bb57e75ab7d7261f1f0c4df0e824b3f2249f55b788c0dc2ae84c6b8fMedium::me()->username;
// returns the username of the medium user e.g prosperMedium::me()->name;
// returns the full name of the medium user e.g Testing TesterMedium::me()->url;
// returns the url of the medium profile e.g "https://medium.com/@prosper"Medium::me()->imageUrl;
// returns the url of the medium user avatar
WIP - PLEASE DON'T USE IN PRODUCTION YET!
Please see CHANGELOG for more information what has changed recently.