PHP code example of lambdacasserole / minim
1. Go to this page and download the library: Download lambdacasserole/minim 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/ */
lambdacasserole / minim example snippets
$auth = new Authenticator(new Configuration('my-config-file.yml'));
$auth->authenticate('email', 'password'); // Authenticate user, true on success false on failure.
// Check if user is authenticated.
if (!$auth->isAuthenticated()) {
header('Location: /forbidden.php'); // Not logged in, go to jail.
die();
}
php composer.phar