PHP code example of gregoriohc / laravel-plesk

1. Go to this page and download the library: Download gregoriohc/laravel-plesk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gregoriohc / laravel-plesk example snippets


'providers' => [
  ...
  Gregoriohc\LaravelPlesk\PleskServiceProvider::class,
],

'aliases' => [
  ...
  'Plesk' => Gregoriohc\LaravelPlesk\Facades\Wrapper::class,
],

Plesk::customer()->create([
    'pname' => 'John Smith',
    'login' => 'john-unit-test',
    'passwd' => 'simple-password',
]);
sh
php artisan vendor:publish --provider="Gregoriohc\LaravelPlesk\PleskServiceProvider"