{"id":16461857,"url":"https://github.com/salahhusa9/laravel-template-components","last_synced_at":"2026-03-16T22:31:42.990Z","repository":{"id":186502292,"uuid":"675278161","full_name":"salahhusa9/laravel-template-components","owner":"salahhusa9","description":"Laravel template components, can use with vuexy and metronic templates","archived":false,"fork":false,"pushed_at":"2024-09-09T08:51:49.000Z","size":53,"stargazers_count":1,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T11:09:36.585Z","etag":null,"topics":["components","laravel","laravel-components","laravel-package","laravel-template","livewire-component","livewire-components","metronic","metronic-component","metronic-laravel","metronic-theme","metronic8","templates","vuexy","vuexy-template"],"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/salahhusa9.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["salahhusa9"]}},"created_at":"2023-08-06T11:47:44.000Z","updated_at":"2023-08-06T11:53:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1fa2991-e7d8-41bb-9c9f-144f629766c2","html_url":"https://github.com/salahhusa9/laravel-template-components","commit_stats":null,"previous_names":["salahhusa9/laravel-template-components"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salahhusa9%2Flaravel-template-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salahhusa9%2Flaravel-template-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salahhusa9%2Flaravel-template-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salahhusa9%2Flaravel-template-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salahhusa9","download_url":"https://codeload.github.com/salahhusa9/laravel-template-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221812301,"owners_count":16884574,"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":["components","laravel","laravel-components","laravel-package","laravel-template","livewire-component","livewire-components","metronic","metronic-component","metronic-laravel","metronic-theme","metronic8","templates","vuexy","vuexy-template"],"created_at":"2024-10-11T11:09:40.372Z","updated_at":"2026-03-16T22:31:42.954Z","avatar_url":"https://github.com/salahhusa9.png","language":"PHP","funding_links":["https://github.com/sponsors/salahhusa9"],"categories":[],"sub_categories":[],"readme":"# Laravel template components, can use with vuexy and metronic templates\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/salahhusa9/laravel-template-components.svg?style=flat-square)](https://packagist.org/packages/salahhusa9/laravel-template-components)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/salahhusa9/laravel-template-components/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/salahhusa9/laravel-template-components/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/salahhusa9/laravel-template-components/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/salahhusa9/laravel-template-components/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/salahhusa9/laravel-template-components.svg?style=flat-square)](https://packagist.org/packages/salahhusa9/laravel-template-components)\n\nThis package is a collection of components that can be used with vuexy and metronic templates, and it can be used with any other template by changing the config file.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require salahhusa9/laravel-template-components\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan laravel-template-components:install\n```\n\n## Usage\n\n### Input Component\n```html\n\u003cx-template-components::input /\u003e\n```\nHe accept all normal attributes of input tag and add some new attributes:\n- div-class: add class to div tag\n- label-class: add class to label tag\n- other attributes will be added to input tag\n\n### Button Component\n```html\n\u003cx-template-components::button /\u003e\n```\nHe accept all normal attributes of button tag and add some new attributes:\n- div-class: add class to div tag\n- span-text-class: add class to span tag that contain button text\n- indicator-progress-class: add class to span tag that contain button progress indicator\n- loading-text: text that will be shown when button is loading\n- spinner-class: add class to span tag that contain button spinner\n- other attributes will be added to button tag\n\nwe support livewire loading state, so if you use livewire you can use loading state like this:\n```html\n\u003cx-template-components::button wire:target=\"save\" /\u003e\n```\n\n### Select Component\n```html\n\u003cx-template-components::select\u003e\n    \u003coption value=\"1\"\u003eoption 1\u003c/option\u003e\n    \u003coption value=\"2\"\u003eoption 2\u003c/option\u003e\n\u003c/x-template-components::select\u003e\n```\nHe accept all normal attributes of select tag and add some new attributes:\n- div-class: add class to div tag\n- label-class: add class to label tag\n- other attributes will be added to select tag\n\n### Textarea Component\n```html\n\u003cx-template-components::textarea /\u003e\n```\nHe accept all normal attributes of textarea tag and add some new attributes:\n- div-class: add class to div tag\n- label-class: add class to label tag\n- other attributes will be added to textarea tag\n\n### Form Component\n```html\n\u003cx-template-components::form\u003e\n    \n\u003c/x-template-components::form\u003e\n```\nhe accept all normal attributes of form tag and add some new attributes:\n- route: route name that will be used in form action\n- other attributes will be added to form tag\n\n## Supported Templates\n\n- [Vuexy](https://demos.pixinvent.com/vuexy-html-admin-template/landing/)\n- [Metronic](https://preview.keenthemes.com/metronic/demo1/index.html)\n\n| Version           | Supported          |\n| ----------------- | ------------------ |\n| Vuexy             | :white_check_mark: |\n| Metronic          | :white_check_mark: |\n| Html Standards    | :white_check_mark: |\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [salahhusa9](https://github.com/salahhusa9)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalahhusa9%2Flaravel-template-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalahhusa9%2Flaravel-template-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalahhusa9%2Flaravel-template-components/lists"}