Skip to content

Commit 6266138

Browse files
committed
Update Namespace for Consistency
- Changed the namespace from `Exbil` to `MsCode` across all PHP files for consistency. - Updated the `use` statements to reflect the new namespace in `Aliases.php`, `Domains.php`, `Credentials.php`, `MailCowAPI.php`, `AssertNotImplemented.php`, `MailBoxes.php`, `AntiSpam.php`, and `ParameterException.php`. - Modified the `composer.json` to autoload the new namespace `MsCode\Mailcow\`. - Corrected the namespace usage in `README.md` to reflect the updated structure.
1 parent ed30c3a commit 6266138

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You need an API Key for that.
3636
require_once 'vendor/autoload.php';
3737

3838
// Use the library namespace
39-
use MsCode\MailCow\MailCowAPI;
39+
use MsCode\Mailcow\MailCow\MailCowAPI;
4040

4141
// Then simply pass your API-Token when creating the API client object.
4242
$client = new MailCowAPI('mailcow-with-https.example.com','MAILCOW_API_KEY');

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"autoload": {
3636
"psr-4": {
37-
"Exbil\\Mailcow\\": "src/"
37+
"MsCode\\Mailcow\\": "src/"
3838
}
3939
}
4040
}

src/Aliases/Aliases.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Exbil\Mailcow\Aliases;
3+
namespace MsCode\Mailcow\Aliases;
44

5-
use Exbil\Mailcow\MailCowAPI;
5+
use MsCode\Mailcow\MailCowAPI;
66

77
class Aliases
88
{

src/AntiSpam/AntiSpam.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Exbil\Mailcow\AntiSpam;
3+
namespace MsCode\Mailcow\AntiSpam;
44

5-
use Exbil\Mailcow\MailCowAPI;
5+
use MsCode\Mailcow\MailCowAPI;
66

77
class AntiSpam
88
{

src/Credentials.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace Exbil;
4+
namespace MsCode\Mailcow;
55

66
class Credentials
77
{

src/Domains/Domains.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33

4-
namespace Exbil\Mailcow\Domains;
4+
namespace MsCode\Mailcow\Domains;
55

6-
use Exbil\Mailcow\MailCowAPI;
6+
use MsCode\Mailcow\MailCowAPI;
77

88
class Domains
99
{

src/Exception/AssertNotImplemented.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Exbil\Mailcow\Exception;
3+
namespace MsCode\Mailcow\Exception;
44

55
use Exception;
66

src/Exception/ParameterException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Exbil\Mailcow\Exception;
3+
namespace MsCode\Mailcow\Exception;
44

55
class ParameterException extends \InvalidArgumentException
66
{

src/MailCowAPI.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

33

4-
namespace Exbil;
4+
namespace MsCode\Mailcow;
55

66
use GuzzleHttp\Client;
7-
use Exbil\Mailcow\Aliases\Aliases;
8-
use Exbil\Mailcow\AntiSpam\AntiSpam;
9-
use Exbil\Mailcow\Domains\Domains;
10-
use Exbil\Mailcow\Exception\ParameterException;
11-
use Exbil\Mailcow\MailBoxes\MailBoxes;
7+
use MsCode\Mailcow\Aliases\Aliases;
8+
use MsCode\Mailcow\AntiSpam\AntiSpam;
9+
use MsCode\Mailcow\Domains\Domains;
10+
use MsCode\Mailcow\Exception\ParameterException;
11+
use MsCode\Mailcow\MailBoxes\MailBoxes;
1212
use Psr\Http\Message\ResponseInterface;
1313

1414
class MailCowAPI

src/Mailboxes/MailBoxes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Exbil\Mailcow\MailBoxes;
3+
namespace MsCode\Mailcow\MailBoxes;
44

5-
use Exbil\Mailcow\MailCowAPI;
5+
use MsCode\Mailcow\MailCowAPI;
66

77
class MailBoxes
88
{

0 commit comments

Comments
 (0)