Skip to content

Commit cf17801

Browse files
author
Michael v/d Rijt
committed
Merge pull request #43 from vitorbari/master
Add lumen installation instructions
2 parents a259563 + c87193e commit cf17801

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Laravel SoapClient Wrapper
22
===========================
33

4-
A SoapClient wrapper integration for Laravel.<br />
4+
A SoapClient wrapper integration for Laravel / Lumen.<br />
55
The documentation will be updated in time.
66

77
Installation
88
============
99

10+
## Laravel
11+
1012
Add `artisaninweb/laravel-soap` as requirement to composer.json
1113

1214
```javascript
@@ -29,6 +31,21 @@ To use the facade add this to the facades in `app/config/app.php`.
2931
'SoapWrapper' => 'Artisaninweb\SoapWrapper\Facades\SoapWrapper'
3032
```
3133

34+
## Lumen
35+
36+
Open `bootstrap/app.php` and register the required service provider:
37+
```php
38+
$app->register(Artisaninweb\SoapWrapper\ServiceProvider::class);
39+
```
40+
41+
register class alias:
42+
```php
43+
class_alias('Artisaninweb\SoapWrapper\Facades\SoapWrapper', 'SoapWrapper');
44+
```
45+
46+
*Facades must be enabled.*
47+
48+
3249
Usage
3350
============
3451

0 commit comments

Comments
 (0)