{"id":16954851,"url":"https://github.com/irazasyed/larasupport","last_synced_at":"2025-04-05T08:07:15.868Z","repository":{"id":32610127,"uuid":"36195272","full_name":"irazasyed/larasupport","owner":"irazasyed","description":"📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.","archived":false,"fork":false,"pushed_at":"2022-12-04T19:17:29.000Z","size":51,"stargazers_count":127,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-13T12:59:19.438Z","etag":null,"topics":["hacktoberfest","larasupport","laravel","laravel-packages","lumen","lumen-package"],"latest_commit_sha":null,"homepage":"https://irazasyed.github.io/larasupport","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/irazasyed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null}},"created_at":"2015-05-24T21:43:25.000Z","updated_at":"2024-04-03T11:56:35.000Z","dependencies_parsed_at":"2023-01-14T21:43:33.378Z","dependency_job_id":null,"html_url":"https://github.com/irazasyed/larasupport","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irazasyed%2Flarasupport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irazasyed%2Flarasupport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irazasyed%2Flarasupport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irazasyed%2Flarasupport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irazasyed","download_url":"https://codeload.github.com/irazasyed/larasupport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"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":["hacktoberfest","larasupport","laravel","laravel-packages","lumen","lumen-package"],"created_at":"2024-10-13T22:10:42.912Z","updated_at":"2025-04-05T08:07:15.835Z","avatar_url":"https://github.com/irazasyed.png","language":"PHP","funding_links":[],"categories":["Packages and Middleware"],"sub_categories":["Videos"],"readme":"[![Larasupport][img-hero]][link-repo]\n\n[![Join PHP Chat][ico-phpchat]][link-phpchat]\n[![Chat on Telegram][ico-telegram]][link-telegram]\n[![Package for Lumen][ico-package]][link-repo]\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]][link-license]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n# Larasupport Package\n\n\u003e **Laravel Package Support for Lumen:** Makes Lumen compatible with Laravel Packages. You can use any Laravel Packages in Lumen by installing **Larasupport** Package.\n\u003e\n\u003e Laravel Packages make use of various global helpers that are not available in Lumen core by default which prevents us from using any Laravel Package in Lumen.\n\u003e\n\u003e This package adds the missing pieces to make Lumen compatible along with the support for `vendor:publish` artisan command and other features.  \n\n## Quick Start\n\n### Install\n\nYou can add the package directly by firing this command\n\n```bash\n$ composer require irazasyed/larasupport\n```\n\n#### Add Service Provider\n\nAdd this service provider to your `bootstrap/app.php` file.\n\n``` php\n$app-\u003eregister(Irazasyed\\Larasupport\\Providers\\ArtisanServiceProvider::class);\n```\n\nArtisan Service Provider is an optional provider required only if you want `vendor:publish` command working.\n\nAnd you're done! You can now start installing any Laravel Package out there :)\n\n## Available Methods\n\n\u003e These helpers can be used across your Lumen project, not only with Laravel Packages.\n\n### Paths\n\n#### app_path\n\nGet the fully qualified path to the `app` directory.\n\n#### public_path\n\nGet the fully qualified path to the `public` directory. You can set env variable `PUBLIC_PATH` and it'll return the same instead of the default `public`.\n\n#### config_path\n\nGet the fully qualified path to the `config` directory (Mostly used with Laravel Packages).\n\n### Artisan\n\n#### vendor:publish\n\nArtisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).\n\n``` bash\nphp artisan vendor:publish\n```\nOR\n\n``` bash\nphp artisan vendor:publish --provider=\"Vendor\\Providers\\PackageServiceProvider\" \n```\n\n### Other\n\n#### route_parameter\n\n``` php\nroute_parameter($name, $default = null)\n```\n\nGet a given parameter from the route.\n\n## Contributing\n\nThank you for considering contributing to the project. Please read [the contributing guide][link-contributing] before creating an issue or sending in a pull request.\n\n## Code of Conduct\n\nPlease read our [Code of Conduct][link-code-of-conduct] before contributing or engaging in discussions.\n\n## Security\n\nIf you discover a security vulnerability within this project, please email Syed at `syed at lukonet.com`. All security vulnerabilities will be promptly addressed. You may view our full security policy [here][link-security-policy].\n\n## Additional information\n\nAny issues, please [report here][link-issues]\n\n## Credits\n\n- [Irfaq Syed][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe Laravel framework is open-sourced software licensed under the MIT license. Larasupport consists almost entirely of Laravel source code, so maintains the same license. Please see [License File][link-license] for more information.\n\n[ico-phpchat]: https://img.shields.io/badge/Slack-PHP%20Chat-5c6aaa.svg?style=flat-square\u0026logo=slack\u0026labelColor=4A154B\n[ico-telegram]: https://img.shields.io/badge/@PHPChatCo-2CA5E0.svg?style=flat-square\u0026logo=telegram\u0026label=Telegram\n[ico-version]: https://img.shields.io/packagist/v/irazasyed/larasupport.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/irazasyed/larasupport.svg?style=flat-square\n[ico-package]: https://img.shields.io/badge/Package%20for%20-Lumen-blue.svg?style=flat-square\n[img-hero]: https://user-images.githubusercontent.com/1915268/94963485-d91de800-0515-11eb-9780-3fac58d701a6.jpg\n\n[link-phpchat]: https://phpchat.co/?ref=larasupport\n[link-telegram]: https://t.me/PHPChatCo\n[link-author]: https://github.com/irazasyed\n[link-repo]: https://github.com/irazasyed/larasupport\n[link-license]: https://github.com/irazasyed/larasupport/blob/master/LICENSE.md\n[link-issues]: https://github.com/irazasyed/larasupport/issues\n[link-contributors]: https://github.com/irazasyed/larasupport/contributors\n[link-packagist]: https://packagist.org/packages/irazasyed/larasupport\n[link-downloads]: https://packagist.org/packages/irazasyed/larasupport/stats\n[link-contributing]: https://github.com/irazasyed/larasupport/blob/master/.github/CONTRIBUTING.md\n[link-code-of-conduct]: https://github.com/irazasyed/larasupport/blob/master/.github/CODE_OF_CONDUCT.md\n[link-security-policy]: https://github.com/irazasyed/larasupport/security/policy\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Firazasyed%2Flarasupport.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Firazasyed%2Flarasupport?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firazasyed%2Flarasupport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firazasyed%2Flarasupport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firazasyed%2Flarasupport/lists"}