This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -S localhost:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
// Include vendor autoload | |
include 'vendor/autoload.php'; | |
// Your website name, or URL. It will be displayed in Google Authenticator | |
define("WEBSITE_URL", 'exampleWebsite'); | |
// The username of the user | |
$username = "username"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ composer update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "yourApp", | |
"require": { | |
"mv/laravel-google-authenticator": "dev-master" | |
}, | |
"autoload": { | |
"classmap": [ | |
"vendor/mv/laravel-google-authenticator", | |
"vendor/mv/laravel-google-authenticator/library" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"dictionary": "Packages/Language - French/fr-moderne.dic", | |
"extensions": | |
[ | |
"tex" | |
], | |
"spell_check": true, | |
"auto_complete": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$PolarChart = new Chart('polar', 'examplepolar'); | |
$PolarChart->set('data', array(20, 55, 16, 30, 42)); | |
$PolarChart->set('legend', array('A', 'B', 'C', 'D', 'E')); | |
echo $PolarChart->returnFullHTML(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$RadarChart = new Chart('radar', 'exampleradar'); | |
$RadarChart->set('data', array(20, 55, 16, 30, 42)); | |
$RadarChart->set('legend', array('A', 'B', 'C', 'D', 'E')); | |
echo $RadarChart->returnFullHTML(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$BarChart = new Chart('bar', 'examplebar'); | |
$BarChart->set('data', array(array(2, 10, 16, 30, 42), array(42, 30, 16, 10, 2))); | |
$BarChart->set('legend', array('01/01', '01/02', '01/03', '01/04', '01/05')); | |
// We don't want to use the x-axis for the legend so we specify the name of each dataset | |
$BarChart->set('legendData', array('Annie', 'Marc')); | |
$BarChart->set('displayLegend', true); | |
echo $BarChart->returnFullHTML(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$DoughnutChart = new Chart('doughnut', 'exampleDoughnut'); | |
$DoughnutChart->set('data', array(2, 10, 16, 30, 42)); | |
$DoughnutChart->set('legend', array('Work', 'Eat', 'Sleep', 'Listen to music', 'Code')); | |
$DoughnutChart->set('displayLegend', true); | |
// We want to display percentages | |
$DoughnutChart->set('legendIsPercentage', true); | |
echo $DoughnutChart->returnFullHTML(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "Chart.php"; | |
?> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Charts</title> | |
<link rel="stylesheet" href="chart.css"> | |
<script src="ChartJS.min.js"></script> |