fourello-devs / mr-speedy
This package is abandoned and no longer maintained.
No replacement package was suggested.
Mr. Speedy Laravel-based SDK
1.0.0
2021-06-24 21:44 UTC
Requires
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2023-03-27 19:15:37 UTC
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require fourello-devs/mr-speedy
Usage
Setup Environment Variables
MR_SPEEDY_API_TOKEN= MR_SPEEDY_CALLBACK_TOKEN= MR_SPEEDY_CALLBACK_URL= # PRODUCTION or blank MR_SPEEDY_ENVIRONMENT=PRODUCTION
Available Options
To utilize this package, you can use either of these:
- MrSpeedy Facade
- mrspeedy() Helper Function
Demonstration
use FourelloDevs\MrSpeedy\Models\Order; use FourelloDevs\MrSpeedy\Models\Point; use FourelloDevs\MrSpeedy\Models\ContactPerson; public function calculateOrderPriceTest(): ?Order { $order = new Order; $order->matter = "Documents"; $point1 = new Point; $point1->address = "Ultramega, General T. De Leon, Demitillo, 2nd District, Valenzuela, Third District, Metro Manila, 1442, Philippines"; $contact1 = new ContactPerson; $contact1->name = 'James Carlo Luchavez'; $contact1->phone = '09061886959'; $point1->contact_person = $contact1; $point2 = new Point; $point2->address = "Demitillo, 2nd District, Valenzuela, Third District, Metro Manila, 1442, Philippines"; $contact2 = new ContactPerson; $contact2->name = 'Denys Don'; $contact2->phone = '09061886959'; $point2->contact_person = $contact2; $order->points = [$point1, $point2]; return $order->calculate(); }
use FourelloDevs\MrSpeedy\Models\Order; public function getOrdersTest() { return Order::all(); }
use FourelloDevs\MrSpeedy\Models\Client; public function getClientTest() { return Client::get(); }
use FourelloDevs\MrSpeedy\Models\BankCard; public function getBankCardsTest(): array { return BankCard::get(); }
NOTE: Other API Methods will be added soon.
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email carlo.luchavez@fourello.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.