Interface to facturation.pro API with Laravel
atome-dev/laravel-facturation-pro-api is a Laravel package for interface to facturation.pro api with laravel.
It currently has 0 GitHub stars and 21 downloads on Packagist (latest version 1.0.3).
Install it with composer require atome-dev/laravel-facturation-pro-api.
Discover more Laravel packages by atome-dev
or browse all Laravel packages to compare alternatives.
Last updated
This package can help you call facturation.pro API services.
It is not owned by the facturation.pro company. It works with the API set to https://facturation.dev.
This package may not be complete and may not work properly, so use it for EDUCATIONAL PURPOSES ONLY!
Beside this recommendation, I personally use it in real production so it should be stable but I cannot be responsible in any way for any malfunction.
composer require atome-dev/laravel-facturation-pro-api
php artisan vendor:publish --provider="AtomeDev\FacturationProApi\FacturationProApiServiceProvider" --tag="config"
/app/Http/Controllers/FacturationProController.php:
namespace App\Http\Controllers;
use AtomeDev\FacturationProApi\Facades\FacturationProApi;
use Illuminate\Http\Request;
class FacturationProController extends Controller
{
public function index() {
$infoApi = FacturationProApi::getApi('account', 'infos');
$ret = FacturationProApi::callApi($infoApi);
dump($ret);
}
}
/routes/web.php:
Route::get('/facturation-pro', [FacturationProController::class, 'index']);

If you have Livewire installed, you might be interested in this form to interact with the API. See the files in extra directory.

Declare the route file in app/Providers/RouteServiceProvider.php:
public function boot()
{
$this->routes(function () {
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/facturation-pro.php'));
});
}

If you discover a security vulnerability within this package, please send me an e-mail via [email protected]. All security vulnerabilities will be promptly addressed.
Facturation Pro Api for Laravel is open-sourced software licensed under the MIT license.