Skip to content

Commit

Permalink
refactor(namespace): prepend with msg91client
Browse files Browse the repository at this point in the history
  • Loading branch information
sudkumar committed Oct 19, 2019
1 parent a2bc54a commit f60f9d4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@ composer require craftsys/msg91-laravel

### Laravel 5.5+

If you're using Laravel 5.5 or above, the package will automatically register the `Craftsys\Laravel\MSGClient91\MSG91ServiceProvider` provider and aliases `Craftsys\Laravel\MSGClient91\Facade` facade to `MSG91`.
If you're using Laravel 5.5 or above, the package will automatically register the `Craftsys\MSG91Client\Laravel\MSG91ServiceProvider` provider and aliases `Craftsys\MSG91Client\Laravel\Facade` facade to `MSG91`.

### Laravel 5.4 and below

Add `Craftsys\Laravel\MSGClient91\MSG91ServiceProvider` to the `providers` array in your `config/app.php`:
Add `Craftsys\MSG91Client\Laravel\MSG91ServiceProvider` to the `providers` array in your `config/app.php`:

```php
'providers' => [
// Other service providers...
Craftsys\Laravel\MSGClient91\MSG91ServiceProvider::class,
Craftsys\MSG91Client\Laravel\MSG91ServiceProvider::class,
],
```

If you want to use the facade interface, you can `use` the facade class when needed:

```php
use Craftsys\Laravel\MSGClient91\Facade;
use Craftsys\MSG91Client\Laravel\Facade;
```

Or add an alias in your `config/app.php`

```php
'aliases' => [
// other aliases here
'MSG91' => Craftsys\Laravel\MSGClient91\Facade::class,
'MSG91' => Craftsys\MSG91Client\Laravel\Facade::class,
],
```

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
},
"laravel": {
"aliases": {
"MSG91": "Craftsys\\Laravel\\MSG91Client\\Facade"
"MSG91": "Craftsys\\MSG91Client\\Laravel\\Facade"
},
"providers": [
"Craftsys\\Laravel\\MSG91Client\\MSGServiceProvider"
"Craftsys\\MSG91Client\\Laravel\\MSGServiceProvider"
]
}
},
Expand All @@ -53,12 +53,12 @@
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"Craftsys\\Laravel\\MSG91Client\\": "src/"
"Craftsys\\MSG91Client\\Laravel\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Craftsys\\Laravel\\MSG91Client\\Test\\": "tests/"
"Craftsys\\MSG91Client\\Laravel\\Test\\": "tests/"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Facade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Craftsys\Laravel\MSG91Client;
namespace Craftsys\MSG91Client\Laravel;

use Craftsys\MSG91Client\Client;
use Illuminate\Support\Facades\Facade as BaseFacade;
Expand Down
2 changes: 1 addition & 1 deletion src/MSGServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Craftsys\Laravel\MSG91Client;
namespace Craftsys\MSG91Client\Laravel;

use Craftsys\MSG91Client\Client;
use Illuminate\Support\ServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Craftsys\Laravel\MSG91Client\Test;
namespace Craftsys\MSG91Client\Laravel\Test;

use Craftsys\MSG91Client\Client;

Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Craftsys\Laravel\MSG91Client\Test;
namespace Craftsys\MSG91Client\Laravel\Test;

use Orchestra\Testbench\TestCase as BaseTestCase;
use Craftsys\Laravel\MSG91Client\MSGServiceProvider;
use Craftsys\Laravel\MSG91Client\Facade;
use Craftsys\MSG91Client\Laravel\MSGServiceProvider;
use Craftsys\MSG91Client\Laravel\Facade;

abstract class TestCase extends BaseTestCase
{
Expand Down

0 comments on commit f60f9d4

Please sign in to comment.