PHP code example of eghojansu / nutrition

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

    

eghojansu / nutrition example snippets

ini
[globals]
; Log file
LOG_FILE = null
ERROR_TEMPLATE = null

[DATABASE]
; database configuration
name = db_fal
username = root
password = null
host = 127.0.0.1
port = null

; Security configuration
[SECURITY]
user_class = null
user_provider = null
password_encoder = null

; Firewalls
[SECURITY.firewals.xxxNamexxx]
path = ^/admin
roles = ROLE_ADMIN
login_route = login_admin

; Role hierarchy
[SECURITY.role_hierarchy]
ROLE_B = ROLE_A
ROLE_C = ROLE_B