Shutdown Xampp (Apache, and MySQl)
...$cd /c/xampp
Download desired version of MariaDB
/c/xampp$ wget http://ftp.hosteurope.de/mirror/archive.mariadb.org//mariadb-10.2.10/winx64-packages/mariadb-10.2.10-winx64.zip
<?php | |
/** | |
* Class XmlDomReader | |
*/ | |
class XMLDomReader | |
{ | |
/** | |
* XML Reader |
<?php | |
/** | |
* Class JsonSimpleXMLElementDecorator | |
* | |
* @link https://hakre.wordpress.com/2013/07/09/simplexml-and-json-encode-in-php-part-i/ | |
* | |
* Implement JsonSerializable for SimpleXMLElement as a Decorator | |
*/ | |
class JsonSimpleXMLElementDecorator implements JsonSerializable |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DustJS</title> | |
<!-- http://www.dustjs.com/docs/api/ --> | |
<!-- http://www.dustjs.com/guides/rendering/ --> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" type="text/css"> | |
<style type="text/css"> | |
body { | |
margin: 50px; |
// https://github.com/linkedin/dustjs-helpers | |
// https://github.com/rodw/common-dustjs-helpers | |
dust.helpers.slug = function (chunk, context, bodies, params) { | |
//replace all special characters | symbols with a space | |
params.value = params.value.replace(/[`~!@#$%^&*()_\-+=\[\]{};:'"\\|\/,.<>?\s]/g, ' ').toLowerCase(); | |
// trim spaces at start and end of string | |
params.value = params.value.replace(/^\s+|\s+$/gm, ''); | |
// replace space with dash/hyphen | |
params.value = params.value.replace(/\s+/g, '-'); |
<?php | |
$resources = array( | |
[ | |
'parent_id' => 1, | |
'parent' => 'Account', | |
'module_id' => 11, | |
'module' => 'User', | |
'enabled' => true, | |
], |
<!DOCTYPE html> | |
<html lang='en' class=''> | |
<head> | |
<meta charset='UTF-8'> | |
<meta name="robots" content="noindex"> | |
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css'> | |
</head> | |
<body> |
<?php | |
$resources = array( | |
[ | |
'parent_id' => 1, | |
'parent' => 'Account', | |
'module_id' => 11, | |
'module' => 'User', | |
'function_id' => 111, | |
'function' => 'View', | |
'enabled' => true, |
<?php | |
/** | |
* Class JsonXMLElement | |
* @link https://hakre.wordpress.com/2013/07/09/simplexml-and-json-encode-in-php-part-i/ | |
*/ | |
class JsonXMLElement extends SimpleXMLElement implements JsonSerializable | |
{ | |
/** |
PHP Curl
curl -X GET \
http://localhost:8000/api/user \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImY3OTllMTZiODAzZjk4ZmU4MGQyZWYzYWFhM2IwODdmZGYwNjZjNmU1MzU2OWMzZjJjMmQ2ZDMzZGZkZmM1M2NjZmFiZTM4MmExMDZlZTczIn0.eyJhdWQiOiIxIiwianRpIjoiZjc5OWUxNmI4MDNmOThmZTgwZDJlZjNhYWEzYjA4N2ZkZjA2NmM2ZTUzNTY5YzNmMmMyZDZkMzNkZmRmYzUzY2NmYWJlMzgyYTEwNmVlNzMiLCJpYXQiOjE1MzcwMTY2MDcsIm5iZiI6MTUzNzAxNjYwNywiZXhwIjoxNTY4NTUyNjA2LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Dy1WJQAHuOJgTEZ0SEJUd09_nO27IW7WpahhaFPDB7gOS5xqps3Cg3lWi663HuZ_8Ik4iXZ5zoLnoFc-0IQAEk86ZZ29EVOdhYN1LUBe4v8kyBc8JgJ5dMamY2dAtwCg_qL4ptxv0gyoZfV2Ot9lxEI9ZbP4vYHGef9o9RKorug8H3J9dm6pIHP6Bd33pO6AaLsxBNedDOAN20oAyhRRbAaeGoFwFyIp208M2Bpnc_Pku1xZUJjXZ-NVBNmpTB69llMti3qjBAHPPFo1br3-2NhGpGwzoYf1ClYrAiBxT58HZAtVIhQJB76fBtqarnObqoitVrTcxlLmUcNnnlTUUKoaupoFkpK-GzjZu-3-ZcJuijK8ZWl2FvhPm_JSRrmNZDtn3D7QMokBz8j-3VwlRB3r6ssJhGj-WzogwyBLTjP_08i2sAKxJStnAYk8SjH5DrUPyxRXiJqcfyUGs2qPZk28uZ38g2y7DsA9XQi-u8KlahRuCbhcGyHmOCQ