
Laravel Envoyer API Package
Laravel Envoyer SDK is a community package by Steve McDougall to work with the Laravel Envoyer API. Laravel released an API for Envoyer on November 4th, which allows users to interact with Envoyer via a REST API.
If you want to have a play with this API, you can even use this handy SDK I whipped together for you #php #phpc #laravel https://t.co/mFiTm2Qrw6 https://t.co/PBx7EYSZd5
— Steve McDougall (@JustSteveKing) November 4, 2020
Here’s how you can get an instance of the API client:
use JustSteveKing\Laravel\Envoyer\SDK\Envoyer;
$envoyer = Envoyer::illuminate(
API_TOKEN_HERE,
'https://envoyer.io/' // this is optional as is the default
);
Once you have an instance of the client, you can perform calls for the various Envoyer API endpoints:
// Get all projects
$envoyer->projects->all();
// Create a project
$envoyer->projects->save([
'name' => 'SDK test',
'provider' => 'github', // bitbucket, github, gitlab, gitlab-self
'type' => 'laravel-5', // laravel-5. laravel-4, other
'repository' => 'laravel/laravel',
'branch' => 'master'
]);
// Find a project by ID
$envoyer->projects->find('id-of-project');
// Modify a project
$envoyer->projects->modify('id-of-project', [
'name' => 'Project name update through SDK',
]);
You can perform the following types of actions with this SDK:
- Manage projects
- Manage servers
- Manage project environments
- Manage action hooks
- Manage deployments
- Manage collaborators
- Manage notifications
Learn More
You can learn more about this package, get full installation instructions, and view the source code on GitHub at JustSteveKing/laravel-envoyer-sdk. Laravel released API Documentation for the new Envoyer API that you can reference for details on getting started with the API.
Filed in: NewsNewsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.
Laravel Jobs

- Full Stack PHP (Mid-Level/Senior) Programmer
-
Remote
PhoneBurner - Software Developer
-
Remote, (US & Canada Only)
Patient Prism - Web Application Developer
-
Chicago Loop
Leading Real Estate Companies of the World - Multiple Laravel Developers (Part-Time)
-
Remote, USA Only
The Great Escape Room - Software Developer
-
Remote (US & Canada)
Alley
Media Library Pro: Vue, React and Blade components to handle uploads (sponsor)
Media Library Pro is an add-on package for our free Media Library base package. It contains a set of Blade, Vue, and…
Run Artisan Commands With a GUI
Laravel Artisan GUI is a package by Bakhtiyar Issakhmetov for running Artisan command from a GUI instead of the comma…