Package Data | |
---|---|
Maintainer Username: | hettiger |
Maintainer Contact: | martin@hettiger.com (Martin Hettiger) |
Package Create Date: | 2014-12-02 |
Package Last Update: | 2014-12-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:01:16 |
Package Statistics | |
---|---|
Total Downloads: | 35 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 14 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 4 |
This package is intended to merge Laravel with ProcessWire to get the best of both worlds!
Be aware: This package is work in progress!
The 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.
Open your composer.json
file and add the following block right above the require section:
// composer.json
...
"repositories": [
{
"type": "package",
"package": {
"name": "ryancramerdesign/processwire",
"version": "2.5.3",
"dist": {
"url": "https://github.com/hettiger/ProcessWire/archive/2.5.3.zip",
"type": "zip"
}
}
}
],
"require": {
...
Now append the require section with following packages:
// composer.json
...
"require": {
...
"ryancramerdesign/processwire": "2.5.*",
"hettiger/larawire": "0.*"
},
...
Run a composer update in your terminal:
composer update -o
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
// app/config/app.php
...
'providers' => array(
...
'Hettiger\Larawire\LarawireServiceProvider',
),
...
You can now install larawire, to merge Laravel with ProcessWire using your terminal:
php artisan larawire:install
Follow the instructions prompted by your terminal.
You 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 ...
public/laravel.php
in your new template filepublic/laravel.php
in your new template fileExample 1
and Example 2
Pull Requests / any form of help are very welcome.