PHP code example of jonob / radiant

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

    

jonob / radiant example snippets


'Radiant' => 'Jonob\Radiant\Radiant',

'aliases' => array(
	...
	'Radiant'       => 'Jonob\Radiant\Radiant',
	...
),

class User extends Radiant {

  /**
   * Radiant validation rules
   */
  protected $rules = array(
    'name' => '

$user = new User();
$user->name = 'John';
$user->email = '[email protected]';
$user->save(); // returns false if model is invalid

protected $messages = array(
	'user.