PHP code example of manelgavalda / php-learning

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

    

manelgavalda / php-learning example snippets

 bash
$ composer 
 php


use Manelgavalda\Myframework\core\Request;
use Manelgavalda\Myframework\core\Router;

->direct(Request::uri());

 php


//Modificar indicant les teves variables d'entorn.

return [
    'dbtype'      => 'mysql',
    'dbname'     => 'prova',
    'username' => '',
    'password' => '',
    'dbhost' => '127.0.0.1'
];