{"id":15199871,"url":"https://github.com/vojislavd/livewire-contact-form","last_synced_at":"2025-11-29T08:02:09.772Z","repository":{"id":62545235,"uuid":"427009490","full_name":"VojislavD/livewire-contact-form","owner":"VojislavD","description":"Simple contact form created with Livewire","archived":false,"fork":false,"pushed_at":"2021-11-27T12:16:21.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T00:35:02.790Z","etag":null,"topics":["livewire","livewire-components"],"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/VojislavD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-11T13:23:07.000Z","updated_at":"2024-03-30T21:49:52.000Z","dependencies_parsed_at":"2022-11-02T22:00:58.938Z","dependency_job_id":null,"html_url":"https://github.com/VojislavD/livewire-contact-form","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/VojislavD%2Flivewire-contact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojislavD%2Flivewire-contact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojislavD%2Flivewire-contact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojislavD%2Flivewire-contact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VojislavD","download_url":"https://codeload.github.com/VojislavD/livewire-contact-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241717708,"owners_count":20008432,"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":["livewire","livewire-components"],"created_at":"2024-09-28T02:05:24.722Z","updated_at":"2025-11-29T08:02:04.720Z","avatar_url":"https://github.com/VojislavD.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple contact form created with Livewire\n\n---\nThis Laravel package add simple Livewire component for contact form, without any styling.\n\n---\nOnce package is installed, include Livewire component on page where you want to have contact form, with one of Livewire's method for rendering component.\n\n`@livewire('livewireContactForm:contact-form')` \n\nor \n\n`\u003clivewire:livewireContactForm:contact-form /\u003e`\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require vojislavd/livewire-contact-form\n```\n\nAfter that run install command:\n```bash\nphp artisan livewirecontactform:install\n```\n#### NOTE\nMake sure to include Livewire scripts on every page you plan to use this component.\n\nAdd `@livewireStyles` inside `\u003chead\u003e\u003c/head\u003e` tag of your HTML page and add `@livewireScripts` right before closing `\u003cbody\u003e\u003c/body\u003e` tag.\n\nFor example:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"{{ str_replace('_', '-', app()-\u003egetLocale()) }}\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"utf-8\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n  \u003ctitle\u003eLaravel\u003c/title\u003e\n  @livewireStyles\n\u003c/head\u003e\n\u003cbody\u003e\n\n  @livewireScripts\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nOptionally, you can publish:\n\nConfig file again:\n```bash\nphp artisan vendor:publish --provider=\"VojislavD\\LivewireContactForm\\LivewireContactFormServiceProvider\" --tag=\"config\"\n```\n\nViews:\n```bash\nphp artisan vendor:publish --provider=\"VojislavD\\LivewireContactForm\\LivewireContactFormServiceProvider\" --tag=\"views\"\n```\n\nLivewire component:\n```bash\nphp artisan vendor:publish --provider=\"VojislavD\\LivewireContactForm\\LivewireContactFormServiceProvider\" --tag=\"livewire-component\"\n```\n\nMail:\n```bash\nphp artisan vendor:publish --provider=\"VojislavD\\LivewireContactForm\\LivewireContactFormServiceProvider\" --tag=\"mail\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'mail' =\u003e [\n        'to' =\u003e env('CONTACT_FORM_MAIL_TO', null)\n    ]\n];\n```\n\n## Usage\nIn .env file define email address where messages from contact form will be sent.\n\n```\nCONTACT_FORM_MAIL_TO=test@example.com\n```\n\nInclude component to your HTML page\n```html\n@livewire('livewireContactForm:contact-form')\n```\n\nTo style contact form or email, publish view assets.\n\nEdit Contact Form: `resrouces/views/vendor/livewireContactForm/livewire/contact-form.blade.php`\n\nEdit Mail: `resrouces/views/vendor/livewireContactForm/mail/contact-form-mail.blade.php`\n\n## Testing\nRun the tests with:\n\n```bash\ncomposer test\n```\n\n## Credits\n\n- [Vojislav Dragicevic](https://vojislavd.com/)\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%2Fvojislavd%2Flivewire-contact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvojislavd%2Flivewire-contact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvojislavd%2Flivewire-contact-form/lists"}