PHP code example of mailmug / zentropy-laravel
1. Go to this page and download the library: Download mailmug/zentropy-laravel 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/ */
mailmug / zentropy-laravel example snippets
use MailMug\ZentropyLaravel\Facades\Zentropy;
// Set a value
Zentropy::set('foo', 'bar');
// Get a value
$value = Zentropy::get('foo');
// Check if a key exists
$exists = Zentropy::exists('foo');
// Delete a key
Zentropy::delete('foo');
// Ping the server
$ping = Zentropy::ping();
bash
php artisan vendor:publish --provider="MailMug\ZentropyLaravel\ZentropyWrapperServiceProvider" --tag="config"