PHP code example of thomas-claireau / php-p5-openclassrooms
1. Go to this page and download the library: Download thomas-claireau/php-p5-openclassrooms 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/ */
thomas-claireau / php-p5-openclassrooms example snippets
$HOST = ''; // le host de votre projet
$DB_NAME = ''; // le nom de la base de donnée
$DB_USER = ''; // l'identifiant d'accès
$DB_PASS = ''; // le mot de passe d'accès
$DB_DSN = "mysql:host={$HOST};dbname={$DB_NAME}";
define('DB_DSN', $DB_DSN);
define('DB_USER', $DB_USER);
define('DB_PASS', $DB_PASS);
define('DB_OPTIONS', array(PDO::ATTR_DEFAULT_FETCH_MODE =>
PDO::FETCH_ASSOC, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
`text
composer create-project thomas-claireau/php-p5-openclassrooms