https://github.com/php-rock/madsms
MadSMS
https://github.com/php-rock/madsms
blade composer-package laravel mvc oop php7
Last synced: about 2 months ago
JSON representation
MadSMS
- Host: GitHub
- URL: https://github.com/php-rock/madsms
- Owner: php-rock
- License: mit
- Created: 2018-05-13T19:31:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T14:37:07.000Z (about 8 years ago)
- Last Synced: 2025-03-31T04:43:34.022Z (about 1 year ago)
- Topics: blade, composer-package, laravel, mvc, oop, php7
- Language: PHP
- Homepage: https://packagist.org/packages/shpartko/madsms
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# madsms
Hi there!
It's an implementation of test case for checking basics `PHP`/`Laravel`/`MVC`/`OOP` skills.
Send sms/mms via random providers.
* **Madsms** - One random gateway for one request;
* **SuperMadsms** - All gateways for one request.
## Install:
Install Laravel
```bash
composer create-project laravel/laravel test
php artisan key:generate
```
Install this package via composer using this command:
```bash
composer require shpartko/madsms
```
That's all. The package will automatically register itself.
## Notifications (E-mail/Slack):
If you want use notifications, you must install the Guzzle HTTP library via Composer:
```bash
composer require guzzlehttp/guzzle
```
And after that you must config notifications section in your `config/madsms.php` and MAIL section in `.env` file.
## Implement:
You can publish the config, lang and views files with:
```bash
php artisan vendor:publish --provider="Shpartko\Madsms\MadServiceProvider"
```
## Facade
You can register MadSMS facades in your `config\app.php` in aliases section:
```
'aliases' => [
'Madsms' => Shpartko\Madsms\Facades\Madsms::class,
'SuperMadsms' => Shpartko\Madsms\Facades\SuperMadsms::class,
],
```
After that you can use short path for access to MadSMS, for example:
```php
Madsms::getGateway()->getGatewayName();
or
SuperMadsms::getRandomGateway()->getGatewayName();
```
## Usage:
For get results of working this package, please, pick one of this url: `http(s)://your-domain/madsms` or `http(s)://your-domain/supermadsms`.
For example: [http://localhost/madsms](http://localhost/madsms) or [http://localhost/supermadsms](http://localhost/supermadsms)
Or you can see how it's work on my domain: [madsms](https://3300101.pp.ua/madsms) and [supermadsms](https://3300101.pp.ua/supermadsms).
## Clear cache
```bash
php artisan package:discover
php artisan route:clear
php artisan config:clear
php artisan clear-compiled
```
## If you want hire me, mail:
* [3300101(at)gmail.com](mailto:3300101@gmail.com)
* [LinkedIn](https://www.linkedin.com/in/shpartko/)
* [Facebook](https://www.facebook.com/sheppardjack)