https://github.com/collinped/laravel-uber
Laravel Wrapper for Uber Api
https://github.com/collinped/laravel-uber
laravel rideshare ridesharing uber uber-api
Last synced: about 1 month ago
JSON representation
Laravel Wrapper for Uber Api
- Host: GitHub
- URL: https://github.com/collinped/laravel-uber
- Owner: collinped
- License: mit
- Created: 2019-12-24T18:03:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T04:00:08.000Z (about 6 years ago)
- Last Synced: 2024-01-29T21:04:08.499Z (about 2 years ago)
- Topics: laravel, rideshare, ridesharing, uber, uber-api
- Language: PHP
- Homepage:
- Size: 217 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

laravel-uber
===============
UNDER CONSTRUCTION - Laravel Uber API Integration
## Installation
Begin by installing this package through Composer. Run this command from the Terminal:
```bash
composer require collinped/laravel-uber
```
If you're using Laravel 5.5+, this is all there is to do.
Should you still be on older versions of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.
### Integration for older versions of Laravel (5.5 -)
To wire this up in your Laravel project, you need to add the service provider.
Open `app.php`, and add a new item to the providers array.
```php
'Collinped\Uber\UberServiceProvider',
```
###Configuring the package
You can publish the config file with:
```php
php artisan vendor:publish --provider="Collinped\Uber\UberServiceProvider" --tag="config"
```
This is the contents of the file that will be published at config/uber.php
Insert the following values into your .env
```php
UBER_ENV=local //optional - uses your current APP_ENV by default
UBER_ID=
UBER_SECRET=
```
Add your SFTP settings to the drivers array in config/filesystems.php
```php
'drivers' => [
...,
'sftp' => [
'driver' => sftp',
'host' => 'sftp.uber.com',
'username' => env('UBER_SFTP_USERNAME'),
'password' => env('UBER_SFTP_PASSWORD'),
'privateKey' => env('UBER_PRIVATE_KEY', '/path/to/privateKey'),
'passphrase' => env('UBER_PRIVATE_KEY_PASSPHRASE'), //optional if set during RSA creation
'port' => 2222,
'root' => '',
// 'timeout' => 30,
],
]
```
See Uber Settings for instructions on how to get these values.
### laravel-uber Roadmap
- [ ] SFTP Upload Users to Uber Business
- [ ] SFTP Upload Expense Codes to Uber Business
- [ ] Download transactional data from Uber Business
### Links
- SFTP Automation - https://developer.uber.com/docs/businesses/data-automation/introduction#introduction
- Transactional Data - https://developer.uber.com/docs/businesses/data-automation/data-download