almukhalafi / netlify-api
Netlify Api
dev-master
2021-12-13 22:11 UTC
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-11-14 04:21:20 UTC
README
Requirements PHP 7.4.0 and later.
##Composer You can install the bindings via Composer. Run the following command:
composer require almukhalafi/netlify-api
Usage
You can now add messages using the Facade (when added), using the PSR-3 levels (debug, info, notice, warning, error, critical, alert, emergency):
$netfliy = new NetlifySites(); // get all sites $netfliy->getSites(); // get site information $netfliy->getSite('site_id'); // update site information $netfliy->updateSite('site_id',['name'=>'unique_new_name']); // delete site $netfliy->deleteSite('site_id');