{"id":15164523,"url":"https://github.com/hexters/wirehmvc","last_synced_at":"2026-01-21T01:32:15.788Z","repository":{"id":200968295,"uuid":"705090701","full_name":"hexters/wirehmvc","owner":"hexters","description":"Package for laravel and livewwire with HMVC convept","archived":false,"fork":false,"pushed_at":"2023-11-02T06:31:52.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-12T14:44:15.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"hexters","ko_fi":"hexters","patreon":"hexters"}},"created_at":"2023-10-15T01:43:15.000Z","updated_at":"2023-10-21T12:50:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f42bfb97-545c-4ae1-9ee8-fc280d7e5c04","html_url":"https://github.com/hexters/wirehmvc","commit_stats":null,"previous_names":["hexters/wirehmvc"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/hexters/wirehmvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fwirehmvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fwirehmvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fwirehmvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fwirehmvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexters","download_url":"https://codeload.github.com/hexters/wirehmvc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fwirehmvc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28621629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-09-27T03:24:59.441Z","updated_at":"2026-01-21T01:32:15.765Z","avatar_url":"https://github.com/hexters.png","language":"PHP","funding_links":["https://github.com/sponsors/hexters","https://ko-fi.com/hexters","https://patreon.com/hexters"],"categories":[],"sub_categories":[],"readme":"# Livewire HMVC (Beta)\n\n[![Latest Stable Version](https://poser.pugx.org/hexters/wirehmvc/v/stable)](https://packagist.org/packages/hexters/wirehmvc)\n[![Total Downloads](https://poser.pugx.org/hexters/wirehmvc/downloads)](https://packagist.org/packages/hexters/wirehmvc)\n[![License](https://poser.pugx.org/hexters/wirehmvc/license)](https://packagist.org/packages/hexters/wirehmvc)\n\nThis package is a support package for the [hexters/laramodule](https://github.com/hexters/laramodule) package specifically made to integrate [hexters/laramodule](https://github.com/hexters/laramodule) with livewire version 3.\n\nTo install through Composer, by run the following command:\n\n```bash\ncomposer require hexters/wirehmvc\n```\n\n# Installation\n\n### Autoloading\nBy default the module classes are not loaded automatically. You can autoload your modules using `psr-4`. For example :\n```json\n{\n  \"autoload\": {\n    \"psr-4\": {\n      \"App\\\\\": \"app/\",\n      \"Modules\\\\\": \"Modules/\",\n      \"Database\\\\Factories\\\\\": \"database/factories/\",\n      \"Database\\\\Seeders\\\\\": \"database/seeders/\"\n    }\n  }\n}\n```\nAnd make `Modules` directory in your root project folder\n\n```bash\nmkdir Modules\n```\n\nDon't forget to run the commands below\n\n```bash\ncomposer dump-autoload\n```\n\nManually add `LivewireHandleUpdateProvider` to the list of providers in the `app.php` config file\n\n```php\n. . .\n\n'providers' =\u003e ServiceProvider::defaultProviders()-\u003emerge([\n    /*\n    * Package Service Providers...\n    */\n\n    Hexters\\Wirehmvc\\LivewireHandleUpdateProvider::class, // add here\n\n    /*\n    * Application Service Providers...\n    */\n    App\\Providers\\AppServiceProvider::class,\n    \n    . . . \n```\n\n### Important notes\n\nIf you want to use the `mount()` hook, make sure you run the `parent::mount()` for the parent class, see the example below.\n\n```php\n. . .\n\nuse Hexters\\Wirehmvc\\Component;\n\n. . .\n\nclass Welcome extends Component\n{\n  \n  public function mount() {\n    parent::mount();\n\n    // Your code here...\n  }\n  \n  public function render()\n  {\n      return view('admin::livewire.welcome');\n  }\n\n. . .\n```\n\n### Create Module\n\nFollow the command below to create a module, and select Livewire in preset option!\n```bash\nphp artisan module:make Blog\n```\nYou can also do this with an existing module, but remember that. The `route.php` file will be replaced by a new file.\n```bash\nphp artisan module:livewire-init --module=Blog\n```\n\n\n### Artisan \n\n```bash\nphp artisan module:make-livewire Counter --module=Blog\nphp artisan module:livewire-attribute ArticleTileAttribute --module=Blog\nphp artisan module:livewire-form ArticleForm --module=Blog\nphp artisan module:livewire-delete Counter --module=Blog\n```\n\nMore complete commands can be seen at the link below.\n### [Artisan Documentation](https://github.com/hexters/laramodule#artisan)\n\n### Layouting\nYou need a layout for your livewire component, you can use the default layout from livewire and you can also create one specifically for your module.\n\nDefault command from livewire\n```bash\nphp artisan livewire:layout\n```\nCustom for specific modules\n```bash\nphp artisan module:livewire-layout --name=app --module=Blog\n```\n### Rendering components\n\nRendering components can only be done on components in the module folder, or you can see `Modules\\Blog\\Http\\Middleware\\LivewireSetupBlogMiddleware` class. I assume the module name is `Blog`!\n\nIn order for a component to be used in another module, you need to register it first, open the provider in each of your modules, see the example below.\n\n```php\n\n. . .\n\nclass BlogServiceProvider extends ServiceProvider\n{\n  . . .\n\n  protected function defineLivewireComponents()\n  {\n      return [\n          NabBar::class,\n\n          // OR\n\n          'nav-bar' =\u003e NavBar::class,\n      ];\n  }\n```\nEach declared component will be given a prefix according to the module name, so when calling it, you need to add a prefix in front of it, see the example below.\n\n```php\n\n\u003clivewire:blog-nav-bar /\u003e\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexters%2Fwirehmvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexters%2Fwirehmvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexters%2Fwirehmvc/lists"}