{
"type": "project",
"license": "proprietary",
"autoload":
{
"psr-4":
{
"App\\": "src/"
}
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 | |
declare(strict_types=1); | |
ini_set('display_errors', '1'); | |
ini_set('display_startup_errors', '1'); | |
error_reporting(E_ALL); | |
class time | |
{ | |
public function now ( $format = "Y-m-d H:i:s.u" ) | |
{ |
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
#Apache HTTP Server Configuration File for Docker Containerized Applications | |
LogLevel debug | |
ErrorLog /proc/self/fd/2 | |
CustomLog /proc/self/fd/1 combined | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /attached/artifact/public | |
LogLevel debug |
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 | |
phpinfo(); |
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
display_startup_errors = On | |
display_errors = On | |
error_reporting = E_ALL | |
log_errors = On | |
max_input_time = 30 | |
max_execution_time = 30 | |
memory_limit = 256M | |
post_max_size = 25M | |
upload_max_filesize = 50M | |
date.timezone = "UTC" |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Blank HTML5 template with Bootstrap and JQuery framework</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="Blank HTML5 template with Bootstrap and JQuery framework"> | |
<meta name="author" content="András Szabácsik"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&subset=latin-ext" rel="stylesheet"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> |
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
$json_string = file_get_contents ( 'php://input' ); | |
$object = json_decode ( $json_string ); | |
var_export ( $object ); | |
//http://php.net/manual/en/wrappers.php.php | |
//https://stackoverflow.com/questions/2731297/file-get-contentsphp-input-or-http-raw-post-data-which-one-is-better-to |
docker run --name mysql -d -e MYSQL_ROOT_PASSWORD=PASSWORD -e MYSQL_ROOT_HOST=% -p 3306:3306 mysql/mysql-server:latest
docker run --name phpmyadmin -d --link mysql:db -p 8080:80 phpmyadmin/phpmyadmin:latest
docker run --name php -d --link mysql:db -p 80:80 php:apache
docker exec php bash -c "echo \"<?php phpinfo();\" >> /var/www/html/index.php"
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 | |
define ( 'SLACK_WEBHOOK', 'https://hooks.slack.com/services/' ); | |
function slack ( $message, $username, $channel ) | |
{ | |
switch ( $channel ) | |
{ | |
case 'delivery-form': | |
$token = '...'; | |
break; | |
} |
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
curl -X POST --data-urlencode "payload={\"channel\": \"#CHANNEL\", \"username\": \"USERNAME\", \"text\": \"MESSAGE\", \"icon_emoji\": \":frog:\"}" https://hooks.slack.com/services/TOKEN |
OlderNewer