digitonic / dealmaker-api
A Laravel package for the DealMaker API
1.0.2-alpha
2024-04-29 12:00 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^10.0 || ^11.0
- illuminate/support: ^10.0 || ^11.0
- saloonphp/saloon: ^3.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-11-08 19:37:12 UTC
README
WARNING: This is not a complete package and is not ready for use. This is a work in progress and only contains a few read only endpoints
A Laravel wrapper of the DealMaker API
Installation
You can install the package via composer:
composer require digitonic/dealmaker-api
You can publish the config file with:
php artisan vendor:publish --tag="dealmaker-api-config"
This is the contents of the published config file:
return [ /** * The Client ID displayed when you created the OAuth application in the portal * This is typically called the "Public Key" in the portal */ 'client_id' => env('DEALMAKER_CLIENT_ID', ''), /** * The Client Secret displayed when you created the OAuth application in the portal * This is typically called the "Secret Key" in the portal */ 'client_secret' => env('DEALMAKER_CLIENT_SECRET', ''), /** * The scope is established when you created the OAuth application * This is typically called the "Scopes" in the portal */ 'scopes' => env('DEALMAKER_SCOPES', ''), /** * The DealMaker Deal ID for the current investment landing page */ 'deal_id' => env('DEALMAKER_DEAL_ID', ''), ];
Usage
$auth = new DealMakerApiAuth(); $token = $auth->getAccessToken(); $dealmakerApi = new Digitonic\DealmakerApi\DealmakerApi($token); $deals = new Digitonic\DealmakerApi\Requests\Deal\ListDeals(); $response = $dealmakerApi->send($deals);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.