REPL
Chevereto supports PsySH, enabling to execute any set of instructions under the environment of a read–eval–print loop (REPL).
You can interact directly with the Chevereto application as it enables to query the database, call any function within the public API, debug and to facilitate exploratory programming.
Using PsySH
PsySH comes included with Chevereto V5, run the following command to start the REPL environment.
sh
app/bin/replSample code
php
use Chevereto\Legacy\Classes\DB;
use Chevereto\Legacy\Classes\Login;
$row = DB::get(table: 'users', values: 'all', limit: 1);
$row = DB::formatRows($row);
$row['name'];
$row['website'];
$row['bio'];
$googleSecret = Login::getProviders('all')['google']['secret'];
$enabledProviders = Login::getProviders('enabled');