{"id":16068377,"url":"https://github.com/unicodeveloper/laravel-medium","last_synced_at":"2025-03-17T21:31:24.716Z","repository":{"id":57075435,"uuid":"43874493","full_name":"unicodeveloper/laravel-medium","owner":"unicodeveloper","description":":package: A Medium Package for Laravel 5","archived":false,"fork":false,"pushed_at":"2015-11-26T16:07:06.000Z","size":13,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T04:57:22.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unicodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-08T08:42:08.000Z","updated_at":"2024-02-20T16:36:59.000Z","dependencies_parsed_at":"2022-08-24T14:55:43.253Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-medium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-medium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-medium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-medium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-medium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-medium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885994,"owners_count":20363649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T06:20:56.511Z","updated_at":"2025-03-17T21:31:24.383Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","readme":"# laravel-medium\n\n[![Latest Stable Version](https://poser.pugx.org/unicodeveloper/laravel-medium/v/stable.svg)](https://packagist.org/packages/unicodeveloper/laravel-medium)\n[![License](https://poser.pugx.org/unicodeveloper/laravel-medium/license.svg)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/unicodeveloper/laravel-medium.svg)](https://travis-ci.org/unicodeveloper/laravel-medium)\n[![Quality Score](https://img.shields.io/scrutinizer/g/unicodeveloper/laravel-medium.svg?style=flat-square)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-medium)\n[![Total Downloads](https://img.shields.io/packagist/dt/unicodeveloper/laravel-medium.svg?style=flat-square)](https://packagist.org/packages/unicodeveloper/laravel-medium)\n\n\u003e Laravel 5 Package to work with Medium. Very easy to use. Offers the use of Facades and Dependency Injection\n\n## Installation\n\n[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.\n\nFirst, pull in the package through Composer.\n\n``` bash\n$ composer require unicodeveloper/laravel-medium\n```\n\nAnother alternative is to simply add the following line to the require block of your `composer.json` file.\n\n```\n\"unicodeveloper/laravel-medium\": \"1.0.*\"\n```\n\nThen run `composer install` or `composer update` to download it and have the autoloader updated.\n\nAdd this to your providers array in `config/app.php`\n\n```php\n// Laravel 5: config/app.php\n\n'providers' =\u003e [\n    ...\n    Unicodeveloper\\Medium\\MediumServiceProvider::class,\n    ...\n];\n```\n\nThis package also comes with a facade\n\n```php\n// Laravel 5: config/app.php\n\n'aliases' =\u003e [\n    ...\n    'Medium' =\u003e Unicodeveloper\\Medium\\Facades\\Medium::class',\n    ...\n]\n```\n\nPublish the config file by running:\n\n```bash\nphp artisan vendor:publish\n```\n\nThe config file will now be located at `config/medium.php`.\n\n## Configuration\n\nThis is the `medium.php` file in the `config` directory. Go to your [medium settings page](https://medium.com/me/settings),\nand generate an access token also known as integration token. Integration tokens do not expire right now, though they may be\nrevoked by the user at any time.\n\n```php\n/**\n *  Config file that a user/developer can insert the self-issued access token\n */\nreturn [\n    'integrationToken' =\u003e ''\n];\n```\n\n## Usage\n\n##### MediumManager\n\nThis 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.\n\n##### Facades\\Medium\n\nThis facade will dynamically pass static method calls to the `'laravel-medium'` object in the ioc container which by default is the `MediumManager` class.\n\n##### Examples\n\nHere you can see an example of just how simple this package is to use.\n\n```php\nuse Unicodeveloper\\Medium\\Facades\\Medium;\n// or you can alias this in config/app.php like I mentioned initially above\n\nMedium::me()-\u003eid;\n// returns the id of the medium user that can be used for future requests e.g 13889cdb2bb57e75ab7d7261f1f0c4df0e824b3f2249f55b788c0dc2ae84c6b8f\n\nMedium::me()-\u003eusername;\n// returns the username of the medium user e.g prosper\n\nMedium::me()-\u003ename;\n// returns the full name of the medium user e.g Testing Tester\n\nMedium::me()-\u003eurl;\n// returns the url of the medium profile e.g  \"https://medium.com/@prosper\"\n\nMedium::me()-\u003eimageUrl;\n// returns the url of the medium user avatar\n```\n\n\n# WIP - PLEASE DON'T USE IN PRODUCTION YET!\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\nYou can run the tests with:\n\n```bash\nvendor/bin/phpunit run\n```\n\nAlternatively, you can run the tests like so:\n\n```bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Prosper Otemuyiwa](https://twitter.com/unicodeveloper)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Security\n\nIf you discover any security related issues, please email [prosperotemuyiwa@gmail.com](prosperotemuyiwa@gmail.com) instead of using the issue tracker.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-medium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-medium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-medium/lists"}