{"id":15691899,"url":"https://github.com/unicodeveloper/laravel-codepen","last_synced_at":"2025-05-08T02:14:24.257Z","repository":{"id":57075458,"uuid":"45771658","full_name":"unicodeveloper/laravel-codepen","owner":"unicodeveloper","description":":pencil: :package: A Codepen Package for Laravel 5","archived":false,"fork":false,"pushed_at":"2015-11-09T04:42:44.000Z","size":0,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T02:14:17.296Z","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-11-08T07:46:32.000Z","updated_at":"2020-07-14T22:00:43.000Z","dependencies_parsed_at":"2022-08-24T14:55:43.320Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-codepen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-codepen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-codepen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-codepen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-codepen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-codepen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252983767,"owners_count":21835765,"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-03T18:25:41.622Z","updated_at":"2025-05-08T02:14:23.864Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","readme":"# laravel-codepen\n\n[![Latest Stable Version](https://poser.pugx.org/unicodeveloper/laravel-codepen/v/stable.svg)](https://packagist.org/packages/unicodeveloper/laravel-codepen)\n[![License](https://poser.pugx.org/unicodeveloper/laravel-codepen/license.svg)](LICENSE.md)\n![](https://img.shields.io/badge/unicodeveloper-approved-brightgreen.svg)\n[![Build Status](https://img.shields.io/travis/unicodeveloper/laravel-codepen.svg)](https://travis-ci.org/unicodeveloper/laravel-codepen)\n[![Total Downloads](https://img.shields.io/packagist/dt/unicodeveloper/laravel-codepen.svg?style=flat-square)](https://packagist.org/packages/unicodeveloper/laravel-codepen)\n\n\u003e Laravel 5 Package to work with Codepen. 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-codepen\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-codepen\": \"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\\Codepen\\CodepenServiceProvider::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    'Codepen' =\u003e Unicodeveloper\\Codepen\\Facades\\Codepen::class,\n    ...\n]\n```\n\n## Usage\n\n##### CodepenManager\n\nThis is the class of most interest. It is bound to the ioc container as `'laravel-codepen'` and can be accessed using the `Facades\\Codepen` facade.\n\n##### Facades\\Codepen\n\nThis facade will dynamically pass static method calls to the `'laravel-codepen'` object in the ioc container which by default is the `CodepenManager` 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\\Codepen\\Facades\\Codepen;\n// or you can alias this in config/app.php like I mentioned initially above\n\nCodepen::getMostPopularPens();\n// returns an array containing 12 results of the most popular codepens\n\nCodepen::getLatestPickedPens();\n// returns an array containing 12 results of the latest picked codepens\n\nCodepen::getRecentlyCreatedPens();\n// returns an array containing 12 results of the most recently created codepens\n\nCodepen::getProfile($username);\n// returns an object containing the profile of a user . e.g $username is chriscoyier\n{#169 ▼\n  +\"nicename\": \"Chris Coyier\"\n  +\"username\": \"chriscoyier\"\n  +\"avatar\": \"//s3-us-west-2.amazonaws.com/s.cdpn.io/3/profile/profile-512_22.jpg\"\n  +\"location\": \"Milwaukee, WI\"\n  +\"bio\": \"I'm kinda into this whole CodePen thing.\"\n  +\"pro\": true\n  +\"followers\": \"6399\"\n  +\"following\": \"1165\"\n  +\"links\": array:3 [▶]\n}\n\nCodepen::user('chriscoyier')-\u003elocation;\n// returns Milwaukee, WI\n\nCodepen::user('chriscoyier')-\u003enicename;\n// returns Chris Coyier\n\nCodepen::user('chriscoyier')-\u003eusername;\n// returns chriscoyier\n\nCodepen::user('chriscoyier')-\u003eavatar;\n// returns //s3-us-west-2.amazonaws.com/s.cdpn.io/3/profile/profile-512_22.jpg\n\nCodepen::user('chriscoyier')-\u003ebio;\n// returns I'm kinda into this whole CodePen thing.\n\nCodepen::user('chriscoyier')-\u003efollowers;\n// returns 6399\n\nCodepen::user('chriscoyier')-\u003efollowing;\n// returns 1165\n\nCodepen::getLovedPosts($username);\n//  e.g sample $username is chriscoyier, returns an array of his most loved posts\n\nCodepen::getPopularPosts($username);\n// e.g sample $username is chriscoyier, returns an array of his most popular posts\n\nCodepen::getPublishedPosts($username);\n// e.g sample $username is chriscoyier, returns an array of his most published posts\n\nCodepen::getLovedPens($username);\n// e.g sample $username is chriscoyier, returns an array of his most loved pens\n\nCodepen::getPopularPens($username);\n// e.g sample $username is chriscoyier, returns an array of his most popular pens\n\nCodepen::getPublicPens($username);\n// e.g sample $username is chriscoyier, returns an array of his public pens\n\nCodepen::getForkedPens($username);\n// e.g sample $username is chriscoyier, returns an array of his most forked pens\n```\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.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-codepen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-codepen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-codepen/lists"}