PHP code example of panelis-php / setting

1. Go to this page and download the library: Download panelis-php/setting 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/ */

    

panelis-php / setting example snippets

 id="hcvv1f"
config('site.name');

use Panelis\Setting\Drivers\DriverManager;

app(DriverManager::class)->register(
    new MailerSendDriver(),
);

use Panelis\Setting\Drivers\MailDriver;

class MailerSendDriver extends MailDriver
{
    public const NAME = 'mailersend';

    public function name(): string
    {
        return self::NAME;
    }

    public function label(): string
    {
        return 'MailerSend';
    }

    public function description(): ?string
    {
        return 'MailerSend API';
    }

    public function installed(): bool
    {
        return InstalledVersions::isInstalled(
            'mailersend/mailersend-laravel'
        );
    }

    public function schema(): ?Section
    {
        return MailerSendForm::schema();
    }
}

class RedisDriver extends CacheDriver
{
    public const NAME = 'redis';

    // ...
}

class SlackDriver extends LogDriver
{
    public const NAME = 'slack';

    // ...
}
bash id="grh3qb"
php artisan migrate