{"id":15685160,"url":"https://github.com/unicodeveloper/laravel-yearly","last_synced_at":"2025-08-19T23:05:47.682Z","repository":{"id":62498329,"uuid":"42482830","full_name":"unicodeveloper/laravel-yearly","owner":"unicodeveloper","description":":copyright: :package: Laravel 5 Package that keeps your copyright up to date. Guys, it's a serious issue, no jokes!!!","archived":false,"fork":false,"pushed_at":"2016-04-16T07:26:42.000Z","size":20,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-06T16:04:02.062Z","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-09-14T23:26:26.000Z","updated_at":"2018-05-07T14:10:00.000Z","dependencies_parsed_at":"2022-11-02T11:46:35.733Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-yearly","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/unicodeveloper/laravel-yearly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-yearly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-yearly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-yearly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-yearly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-yearly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-yearly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271236280,"owners_count":24723978,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03T17:24:05.545Z","updated_at":"2025-08-19T23:05:47.629Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","readme":"# laravel-yearly\n\n[![Latest Stable Version](https://poser.pugx.org/busayo/laravel-yearly/v/stable.svg)](https://packagist.org/packages/busayo/laravel-yearly)\n![](https://img.shields.io/badge/unicodeveloper-approved-brightgreen.svg)\n[![License](https://poser.pugx.org/busayo/laravel-yearly/license.svg)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/busayo/laravel-yearly.svg)](https://travis-ci.org/busayo/laravel-yearly)\n[![Quality Score](https://img.shields.io/scrutinizer/g/busayo/laravel-yearly.svg?style=flat-square)](https://scrutinizer-ci.com/g/busayo/laravel-yearly)\n[![Total Downloads](https://img.shields.io/packagist/dt/busayo/laravel-yearly.svg?style=flat-square)](https://packagist.org/packages/busayo/laravel-yearly)\n\n\u003e Laravel 5 Package to help keep your copyright year up-to-date. Simple but insanely useful.\n\n## Install\n\n[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.\n\nVia Composer\n\n``` bash\n$ composer require busayo/laravel-yearly\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-yearly\": \"1.1.*\"\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\n// Laravel 5: config/app.php\n\n'providers' =\u003e [\n    ...\n    'Unicodeveloper\\Yearly\\YearlyServiceProvider',\n    ...\n];\n```\n\nThis package also comes with a facade\n\n```php\n\n// Laravel 5: config/app.php\n\n'aliases' =\u003e [\n    ...\n    'Yearly' =\u003e 'Unicodeveloper\\Yearly\\YearlyFacade',\n    ...\n]\n```\n\n## Usage\n\nUse it in your views, preferably in your footer section like this:\n\n``` php\n\n{{ current_year() }}  // returns 2015 ( This is the current year presently )\n\n{{ year_range(2002) }} // returns 2002 - 2015\n\n```\n\n\nFor those that love Facades immensely, I have provided the cake for you :smile: like so:\n\n\n``` php\n\n{{ Yearly::current_year() }}  // returns 2015 ( This is the current year presently )\n\n{{ Yearly::year_range(2002) }} // returns 2002 - 2015\n\n```\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## Inspiration\n\n * [Robby on Rails: Year After Year](http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year)\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-yearly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-yearly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-yearly/lists"}