-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d5e5784
Showing
17 changed files
with
1,179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/vendor/ | ||
.phpunit.cache/ | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<p align="center"> | ||
<img src="https://avatars.githubusercontent.com/u/152215067?s=200&v=4" height="80"> | ||
</p> | ||
|
||
# LabsMobile-Laravel | ||
|
||
 | ||
|
||
XXXXXXX | ||
|
||
## Documentation | ||
|
||
- Labsmobile API documentation can be found [here][apidocs]. | ||
|
||
|
||
## Features | ||
- Send SMS messages. | ||
|
||
## Requirements | ||
|
||
xxxx | ||
|
||
## Installation | ||
|
||
xxxx | ||
|
||
## Help | ||
|
||
If you have questions, you can contact us through the support chat or through the support email support@labsmobile.com. | ||
|
||
[apidocs]: https://apidocs.labsmobile.com/ | ||
[signUp]: https://www.labsmobile.com/en/signup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "labsmobile/sms-php", | ||
"description": "Sms PHP", | ||
"type": "library", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"Labsmobile\\SmsPhp\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Labsmobile\\SmsPhp\\Tests\\": "tests/" | ||
} | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "LabsMobile" | ||
} | ||
], | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.5" | ||
}, | ||
"require": { | ||
"php": "^7.0.0", | ||
"guzzlehttp/guzzle": "^7.8", | ||
"ext-json": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
cacheResultFile=".phpunit.cache/test-results" | ||
executionOrder="depends,defects" | ||
forceCoversAnnotation="false" | ||
beStrictAboutCoversAnnotation="false" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
convertDeprecationsToExceptions="true" | ||
verbose="true" | ||
colors="true"> | ||
<testsuites> | ||
<testsuite name="default"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Labsmobile\SmsPhp\Exception; | ||
|
||
|
||
|
||
class LabsMobileException extends \Exception | ||
{ | ||
protected $message; | ||
protected $status; | ||
|
||
public function __construct($message, $status) | ||
{ | ||
$this->message = $message; | ||
$this->status = $status; | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Get the value of status | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->status; | ||
} | ||
|
||
public function __toString() | ||
{ | ||
return 'LabsMobileException: message='. $this->message.', status='.$this->status; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Labsmobile\SmsPhp\Exception; | ||
|
||
class ParametersException extends LabsMobileException | ||
{ | ||
protected $message; | ||
|
||
public function __construct($message) | ||
{ | ||
$this->message = $message; | ||
parent::__construct($message, null); | ||
} | ||
|
||
public function __toString() | ||
{ | ||
return 'ParametersException: message='. $this->message; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Labsmobile\SmsPhp\Exception; | ||
|
||
class RestException extends LabsMobileException | ||
{ | ||
protected $message; | ||
protected $status; | ||
|
||
public function __construct($message, $status) | ||
{ | ||
$this->message = $message; | ||
$this->status = $status; | ||
parent::__construct($message, $status); | ||
} | ||
|
||
/** | ||
* Get the value of status | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->status; | ||
} | ||
|
||
public function __toString() | ||
{ | ||
return 'RestException: message='. $this->message.', status='.$this->status; | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.