Download the PHP package ariaieboy/caprover-sdk without Composer
On this page you can find all versions of the php package ariaieboy/caprover-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariaieboy/caprover-sdk
More information about ariaieboy/caprover-sdk
Files in ariaieboy/caprover-sdk
Package caprover-sdk
Short Description CapRover SDK for PHP and Laravel
License MIT
Homepage https://github.com/ariaieboy/caprover-sdk
Informations about the package caprover-sdk
CapRover SDK for Laravel
Caprover is a "Free and Open Source PaaS".
You can interact with Caprover Api using this package in your PHP projects.
⚠️ Read this section before you use this package
According to this section, the API of the Caprover needs to be documented.
There is no official document for the API commands at this point as it is subject to change at any point.
The line above is the exact sentence the Caprover team put in the API section of the Caprover CLI
.
Because of this, we can't guarantee that this SDK will work with all versions of the Caprover
.
We will test each release of Caprover-Sdk
with the latest version of
the Caprover
, and we only guarantee that this package will work with the newest version.
The latest release is tested with v1.10.1 of the Caprover
.
Installation
You can install the package via Composer:
Usage in Laravel
Publish config file and set your credentials:
This is the contents of the published config file:
You can use the .env file instead:
Using In PHP Application
Available Methods
Testing
We are using Saloon as the base for our SDK, and for testing, we are using PestPHP. To run available tests, you can run the tests using PestPHP CLI:
We use Saloon Recording Responses
, and because of that, if you run the available tests, you do not need to provide any caprover server for the tests.
You can run tests on a specific caprover server by creating a .env
file in your tests folder.
We have an example .env
file called .env.example
that you can use to create your .env
file.
For testing APIs that do operations on an app, you must provide a test app name from your caprover server using the CAPROVER_TEST_APP
ENV variable.
And for testing the APIs that change an app's custom domain, you must provide a domain name that points to your caprover server using the CAPROVER_TEST_DOMAIN
ENV variable.
Changelog
Please see CHANGELOG for recent changes.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- AriaieBOY
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of caprover-sdk with dependencies
illuminate/contracts Version ^10.0
sammyjo20/saloon Version ^2.0
spatie/laravel-package-tools Version ^1.15.0