{"id":22296755,"url":"https://github.com/webklex/helpers","last_synced_at":"2026-05-02T13:34:55.080Z","repository":{"id":62547935,"uuid":"68807903","full_name":"Webklex/helpers","owner":"Webklex","description":"This is a helpers package that provides some built in helpers, and also provides an Artisan generator to quickly create your own custom helpers.","archived":false,"fork":false,"pushed_at":"2017-02-17T13:48:48.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T19:56:01.974Z","etag":null,"topics":["helpers","laravel","library","php"],"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/Webklex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-21T10:53:34.000Z","updated_at":"2020-09-08T09:08:54.000Z","dependencies_parsed_at":"2022-11-02T22:30:24.750Z","dependency_job_id":null,"html_url":"https://github.com/Webklex/helpers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Webklex","download_url":"https://codeload.github.com/Webklex/helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556961,"owners_count":20634888,"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":["helpers","laravel","library","php"],"created_at":"2024-12-03T17:47:29.787Z","updated_at":"2026-05-02T13:34:55.043Z","avatar_url":"https://github.com/Webklex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Helpers\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis is a helpers package that provides some built in helpers, and also provides an Artisan generator to quickly create your own custom helpers.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require webklex/helpers\n```\n\n## Setup\n\nAdd the service provider to the providers array in `config/app.php`.\n\n``` php\n'providers' =\u003e [\n    webklex\\helpers\\HelperServiceProvider::class,\n];\n```\n\n## Publishing\n\nYou can publish everything at once\n\n``` php\nphp artisan vendor:publish --provider=\"webklex\\helpers\\HelperServiceProvider\"\n```\n\nor you can publish groups individually.\n\n``` php\nphp artisan vendor:publish --provider=\"webklex\\helpers\\HelperServiceProvider\" --tag=\"config\"\n```\n\n## Usage\n\nThis package comes with some built in helpers that you can choose to use or not. By default all of these helpers are inactive for your application. To adjust which helpers are active and which are inactive, open `config/helpers.php` and find the `package_helpers` option. Add any helpers you wish to activate to this key. Check the source code to see what functions are included in each helper and what each does.\n\nYou can also create your own custom helpers for inclusion in your application. An Artisan generator helps you quickly make new helpers for your application. \n\n``` sh\nphp artisan make:helper MyHelper\n```\n\nYour custom helper will be placed in `app/Helpers`, unless you override the default directory in your configuration.\n\nBy default, the service provider uses the `glob` function to automatically require any PHP files in the 'Helpers' directory. If you prefer a mapper based approach, you may edit the `custom_helpers` in the configuration file, and include the file name of any helpers in your custom directory you wish to activate. Within the new helper, define your own custom functions that will be available throughout your application.\n\n``` php\nif (!function_exists('hello')) {\n\n    /**\n     * say hello\n     *\n     * @param string $name\n     * @return string\n     */\n    function hello($name)\n    {\n        return 'Hello ' . $name . '!';\n    }\n}\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email github@webklex.com instead of using the issue tracker.\n\n## Credits\n\n- [Webklex][link-author]\n- Andrew Brown\n- All Contributors\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/webklex/helpers.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/Webklex/helpers/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/webklex/helpers.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/webklex/helpers.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/webklex/helpers.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/webklex/helpers\n[link-travis]: https://travis-ci.org/webklex/helpers\n[link-scrutinizer]: https://scrutinizer-ci.com/g/webklex/helpers/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/webklex/helpers\n[link-downloads]: https://packagist.org/packages/webklex/helpers\n[link-author]: https://github.com/webklex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fhelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebklex%2Fhelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fhelpers/lists"}