Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ablypl/furgonetka
https://github.com/ablypl/furgonetka
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/ablypl/furgonetka
- Owner: ablypl
- Created: 2016-11-04T12:40:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T22:25:08.000Z (almost 7 years ago)
- Last Synced: 2024-09-19T03:25:39.920Z (about 2 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Furgonetka API
Laravel API wrapper for furgonetka.pl
### Installation
```
composer require lari/furgonetka
```Then in your php file:
```
use Lari\Furgonetka\Client as Furgonetka;// Get user info
(new Furgonetka())->user()->get();// Add new package
(new Furgonetka())
->package()
->from(App\User $sender)
->to(App\User $receiver)
->addParameter('sender_paczkomat', 'XXXX')
->addParameter('receiver_paczkomat', 'XXXX')
->add('inpost');
```### Methods
##### User // (new Furgonetka())->user()
* get()##### Billing // (new Furgonetka())->billing()
* pay(float $amount)
##### Package // (new Furgonetka())->package()
* from($user)
* to($user)
* price()
* add($service_name)
* details($package_id)
* cancel($package_id)
* order(array $packages_ids) // orders a courier
* delete($pacakge_id)
* getWaiting() // get list of awaiting packages
* addParameter($name, $value) // add parameter to global query
* ofType($name = "package") // package | dox | palette##### Paczkomaty // (new Furgonetka())->paczkomaty()
* user($user)
* get()### Development
Want to contribute? Great!
Contact me at [email protected]
### License
MIT