commit ec5c74c29f1cb66fa6e1eae07a56f4017e68d94c Author: Tony Yang Date: Fri Nov 22 12:14:00 2019 +0800 test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..140fada --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vendor/* diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..bc8bafc --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: vendor/bin/heroku-php-apache2 web/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..24e7a6f --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# php-getting-started + +A barebones PHP app that makes use of the [Silex](http://silex.sensiolabs.org/) web framework, which can easily be deployed to Heroku. + +This application supports the [Getting Started with PHP on Heroku](https://devcenter.heroku.com/articles/getting-started-with-php) article - check it out. + +## Deploying + +Install the [Heroku Toolbelt](https://toolbelt.heroku.com/). + +```sh +$ git clone git@github.com:heroku/php-getting-started.git # or clone your own fork +$ cd php-getting-started +$ heroku create +$ git push heroku master +$ heroku open +``` + +or + +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) + +## Documentation + +For more information about using PHP on Heroku, see these Dev Center articles: + +- [Getting Started with PHP on Heroku](https://devcenter.heroku.com/articles/getting-started-with-php) +- [PHP on Heroku](https://devcenter.heroku.com/categories/php) diff --git a/app.json b/app.json new file mode 100644 index 0000000..c788ce3 --- /dev/null +++ b/app.json @@ -0,0 +1,6 @@ +{ + "name": "gsat-countdown", + "description": "test", + "repository": "https://github.com/t510599/gsat-countdown", + "addons": [] +} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..4ecc0aa --- /dev/null +++ b/composer.json @@ -0,0 +1,8 @@ +{ + "require" : { + "ext-gd" : "*" + }, + "require-dev": { + "heroku/heroku-buildpack-php": "*" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..869c1b6 --- /dev/null +++ b/composer.lock @@ -0,0 +1,64 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "content-hash": "02271911e0b7644acb1e2da1a5c1aea0", + "packages": [], + "packages-dev": [ + { + "name": "heroku/heroku-buildpack-php", + "version": "v164", + "source": { + "type": "git", + "url": "https://github.com/heroku/heroku-buildpack-php.git", + "reference": "65bbee93ecc41f8a7d7f909e120c614763079167" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/heroku/heroku-buildpack-php/zipball/65bbee93ecc41f8a7d7f909e120c614763079167", + "reference": "65bbee93ecc41f8a7d7f909e120c614763079167", + "shasum": "" + }, + "bin": [ + "bin/heroku-hhvm-apache2", + "bin/heroku-hhvm-nginx", + "bin/heroku-php-apache2", + "bin/heroku-php-nginx" + ], + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "David Zuelke", + "email": "dz@heroku.com" + } + ], + "description": "Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku", + "homepage": "https://github.com/heroku/heroku-buildpack-php", + "keywords": [ + "apache", + "apache2", + "foreman", + "heroku", + "hhvm", + "nginx", + "php" + ], + "time": "2019-10-24T16:05:31+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "ext-gd": "*" + }, + "platform-dev": [] +} diff --git a/web/.htaccess b/web/.htaccess new file mode 100644 index 0000000..18b77c3 --- /dev/null +++ b/web/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^(.+)\.png$ $1.php [L] diff --git a/web/exam.php b/web/exam.php new file mode 100644 index 0000000..a13f083 --- /dev/null +++ b/web/exam.php @@ -0,0 +1,36 @@ +' diff --git a/web/font/Regular.ttf b/web/font/Regular.ttf new file mode 100644 index 0000000..2a6ff8d Binary files /dev/null and b/web/font/Regular.ttf differ diff --git a/web/index.php b/web/index.php new file mode 100644 index 0000000..c489446 --- /dev/null +++ b/web/index.php @@ -0,0 +1,3 @@ +