{"id":22703995,"url":"https://github.com/hettiger/larawire","last_synced_at":"2025-04-13T09:44:32.291Z","repository":{"id":24059931,"uuid":"27445946","full_name":"hettiger/larawire","owner":"hettiger","description":"Merges Laravel with ProcessWire to get the best of both worlds!","archived":false,"fork":false,"pushed_at":"2014-12-06T18:14:17.000Z","size":180,"stargazers_count":14,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:11:44.126Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hettiger.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":"2014-12-02T18:06:01.000Z","updated_at":"2023-10-31T23:18:45.000Z","dependencies_parsed_at":"2022-07-12T06:47:09.197Z","dependency_job_id":null,"html_url":"https://github.com/hettiger/larawire","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Flarawire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Flarawire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Flarawire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Flarawire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hettiger","download_url":"https://codeload.github.com/hettiger/larawire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248694173,"owners_count":21146944,"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":[],"created_at":"2024-12-10T08:13:26.813Z","updated_at":"2025-04-13T09:44:32.271Z","avatar_url":"https://github.com/hettiger.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LaraWire\n\nThis package is intended to merge Laravel with ProcessWire to get the best of both worlds!\n\n__Be aware: This package is work in progress!__\n\n----\n\n### Installation\n\nThe installation instructions might seem a bit unfamiliar to you but are required as there is no composer package of processwire. Also the releases on GitHub are off so I've forked the original package maintaining the releases myself. I hope you understand that I refuse to put a fork on packagist.\n\nOpen your `composer.json` file and add the following block right above the require section:\n\n```json\n// composer.json\n\n...\n\n\"repositories\": [\n    {\n        \"type\": \"package\",\n        \"package\": {\n            \"name\": \"ryancramerdesign/processwire\",\n            \"version\": \"2.5.3\",\n            \"dist\": {\n                \"url\": \"https://github.com/hettiger/ProcessWire/archive/2.5.3.zip\",\n                \"type\": \"zip\"\n            }\n        }\n    }\n],\n\"require\": {\n\n...\n```\n\nNow append the require section with following packages:\n\n```json\n// composer.json\n\n...\n\n\"require\": {\n\n    ...\n\n    \"ryancramerdesign/processwire\": \"2.5.*\",\n    \"hettiger/larawire\": \"0.*\"\n},\n\n...\n```\n\nRun a composer update in your terminal:\n\n```bash\ncomposer update -o\n```\n\nAfter updating composer, add the ServiceProvider to the providers array in app/config/app.php\n\n```php\n// app/config/app.php\n\n...\n\n'providers' =\u003e array(\n\n    ...\n\n    'Hettiger\\Larawire\\LarawireServiceProvider',\n\n),\n\n...\n```\n\nYou can now install larawire, to merge Laravel with ProcessWire using your terminal:\n\n```bash\nphp artisan larawire:install\n```\n\nFollow the instructions prompted by your terminal.\n\n### What's next?\n\nYou are able to require `public/laravel.php` in your template files now. Just think a second about it. This gives you a lot of power ...\n\n#### Example 1\n\n1. Create a template file for your 404-Error-Page\n2. Require `public/laravel.php` in your new template file\n3. Use Laravel to take care of 404-Error's\n4. Feel free to use Laravel the way you're used to\n5. Be aware that ProcessWire URL's can \"overwrite\" Laravel's routes\n6. Enjoy full access to ProcessWire's API within Laravel\n\n#### Example 2\n\n1. Create a \"Laravel\" template file\n2. Require `public/laravel.php` in your new template file\n3. Use your new \"Laravel\" template file for each template that should be \"Laravel powered\"\n4. Generate routes in Laravel using ProcessWire Selectors (template=name)\n5. Feel free to use Laravel the way you're used to\n6. Enjoy full access to ProcessWire's API within Laravel\n\n#### Example 3\n\n1. Mix `Example 1` and `Example 2`\n2. Go crazy :-)\n\n### Future\n\n* Optimized ProcessWire site\n* Supporting services for route generation\n* Proper Apache and nginx configuration files\n* ...\n\nPull Requests / any form of help are very welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhettiger%2Flarawire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhettiger%2Flarawire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhettiger%2Flarawire/lists"}