From 739b179ad60655b5afdb19127a55a4d10b091041 Mon Sep 17 00:00:00 2001 From: obeya edward obande Date: Sun, 28 Oct 2018 11:33:09 +0100 Subject: [PATCH 1/7] added heroku dep for php --- .DS_Store | Bin 0 -> 6148 bytes Procfile | 1 + app.json | 6 + composer.json | 11 + composer.lock | 849 +++++++++++++++++++++++++++++++++++++++ web/.DS_Store | Bin 0 -> 6148 bytes web/.htaccess | 3 + web/images/favicon.png | Bin 0 -> 687 bytes web/images/lang-logo.png | Bin 0 -> 1066 bytes web/index.php | 25 ++ web/stylesheets/main.css | 36 ++ web/views/header.html | 5 + web/views/index.twig | 57 +++ web/views/layout.html | 12 + web/views/nav.html | 33 ++ 15 files changed, 1038 insertions(+) create mode 100644 .DS_Store create mode 100644 Procfile create mode 100644 app.json create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 web/.DS_Store create mode 100644 web/.htaccess create mode 100644 web/images/favicon.png create mode 100644 web/images/lang-logo.png create mode 100755 web/index.php create mode 100644 web/stylesheets/main.css create mode 100644 web/views/header.html create mode 100644 web/views/index.twig create mode 100644 web/views/layout.html create mode 100644 web/views/nav.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a46d28658404551e287b948c3637b3b6468bef6f GIT binary patch literal 6148 zcmeHK%We}f6uoW&I6)OzAhk;6wNTIDQ10q?K48gd*R_K7QO|`<}@5n21<+6m1ff^_|dHog2+ z>SLFmfFZHpV;Y{vWNUxGOfgEIUa2$V_nhp*9Fx-l=24!{DWR0&Isfl-{tbFSdvuq2 zbRW2Z)kd=nx;@9JQHfZ>GrT^YirspJWj?U0{TdF^BriIhZ)~Mjzi{yq=S|*RZ9eml zW$70|G0MBa@QJD&1jTV^%MYbYf0cvqQ4*Jjt*iHBRs=~F4>dW7Vz@kgoMe$KyK;UfS1eB9GYU4m*Zwd|W%dFsQ}3yl!=+Kc{OH^LMM(B;T?kIywF2n~ rNtyDi3~CB8dmZb7x{BA4w4qO^0?@Nq8AJ=reF$h7T;>$`rwaT8hXJ2K literal 0 HcmV?d00001 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/app.json b/app.json new file mode 100644 index 0000000..a99252a --- /dev/null +++ b/app.json @@ -0,0 +1,6 @@ +{ + "name": "Start on Heroku: PHP", + "description": "A barebones PHP app that makes use of the Silex web framework", + "repository": "https://github.com/heroku/php-getting-started", + "addons": [] +} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1a39344 --- /dev/null +++ b/composer.json @@ -0,0 +1,11 @@ +{ + "require" : { + "silex/silex": "^2.0.4", + "monolog/monolog": "^1.22", + "twig/twig": "^2.0", + "symfony/twig-bridge": "^3" + }, + "require-dev": { + "heroku/heroku-buildpack-php": "*" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..f2c4d24 --- /dev/null +++ b/composer.lock @@ -0,0 +1,849 @@ +{ + "_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": "e66fd5c3f8342ff9ed1f0d21aab6ef81", + "packages": [ + { + "name": "monolog/monolog", + "version": "1.22.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0", + "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "jakub-onderka/php-parallel-lint": "0.9", + "php-amqplib/php-amqplib": "~2.4", + "php-console/php-console": "^3.1.3", + "phpunit/phpunit": "~4.5", + "phpunit/phpunit-mock-objects": "2.3.0", + "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "~5.3" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "time": "2017-03-13T07:08:03+00:00" + }, + { + "name": "pimple/pimple", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/silexphp/Pimple.git", + "reference": "a30f7d6e57565a2e1a316e1baf2a483f788b258a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/a30f7d6e57565a2e1a316e1baf2a483f788b258a", + "reference": "a30f7d6e57565a2e1a316e1baf2a483f788b258a", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "Pimple": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Pimple, a simple Dependency Injection Container", + "homepage": "http://pimple.sensiolabs.org", + "keywords": [ + "container", + "dependency injection" + ], + "time": "2015-09-11T15:10:35+00:00" + }, + { + "name": "psr/log", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2016-10-10T12:19:37+00:00" + }, + { + "name": "silex/silex", + "version": "v2.0.4", + "source": { + "type": "git", + "url": "https://github.com/silexphp/Silex.git", + "reference": "49ca08d853731d1635374e5019c8696cfd53c161" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/silexphp/Silex/zipball/49ca08d853731d1635374e5019c8696cfd53c161", + "reference": "49ca08d853731d1635374e5019c8696cfd53c161", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "pimple/pimple": "~3.0", + "symfony/event-dispatcher": "~2.8|^3.0", + "symfony/http-foundation": "~2.8|^3.0", + "symfony/http-kernel": "~2.8|^3.0", + "symfony/routing": "~2.8|^3.0" + }, + "replace": { + "silex/api": "self.version", + "silex/providers": "self.version" + }, + "require-dev": { + "doctrine/dbal": "~2.2", + "monolog/monolog": "^1.4.1", + "swiftmailer/swiftmailer": "~5", + "symfony/asset": "~2.8|^3.0", + "symfony/browser-kit": "~2.8|^3.0", + "symfony/config": "~2.8|^3.0", + "symfony/css-selector": "~2.8|^3.0", + "symfony/debug": "~2.8|^3.0", + "symfony/doctrine-bridge": "~2.8|^3.0", + "symfony/dom-crawler": "~2.8|^3.0", + "symfony/expression-language": "~2.8|^3.0", + "symfony/finder": "~2.8|^3.0", + "symfony/form": "~2.8|^3.0", + "symfony/intl": "~2.8|^3.0", + "symfony/monolog-bridge": "~2.8|^3.0", + "symfony/options-resolver": "~2.8|^3.0", + "symfony/phpunit-bridge": "~2.8|^3.0", + "symfony/process": "~2.8|^3.0", + "symfony/security": "~2.8|^3.0", + "symfony/serializer": "~2.8|^3.0", + "symfony/translation": "~2.8|^3.0", + "symfony/twig-bridge": "~2.8|^3.0", + "symfony/validator": "~2.8|^3.0", + "symfony/var-dumper": "~2.8|^3.0", + "twig/twig": "~1.27|~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Silex\\": "src/Silex" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + } + ], + "description": "The PHP micro-framework based on the Symfony Components", + "homepage": "http://silex.sensiolabs.org", + "keywords": [ + "microframework" + ], + "time": "2016-11-06T18:09:06+00:00" + }, + { + "name": "symfony/debug", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/debug.git", + "reference": "56f613406446a4a0a031475cfd0a01751de22659" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/debug/zipball/56f613406446a4a0a031475cfd0a01751de22659", + "reference": "56f613406446a4a0a031475cfd0a01751de22659", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "psr/log": "~1.0" + }, + "conflict": { + "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" + }, + "require-dev": { + "symfony/class-loader": "~2.8|~3.0", + "symfony/http-kernel": "~2.8|~3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Debug\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Debug Component", + "homepage": "https://symfony.com", + "time": "2017-03-28T21:38:24+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "154bb1ef7b0e42ccc792bd53edbce18ed73440ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/154bb1ef7b0e42ccc792bd53edbce18ed73440ca", + "reference": "154bb1ef7b0e42ccc792bd53edbce18ed73440ca", + "shasum": "" + }, + "require": { + "php": ">=5.5.9" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~2.8|~3.0", + "symfony/dependency-injection": "~2.8|~3.0", + "symfony/expression-language": "~2.8|~3.0", + "symfony/stopwatch": "~2.8|~3.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "time": "2017-04-04T07:26:27+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "cb0b6418f588952c9290b3df4ca650f1b7ab570a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/cb0b6418f588952c9290b3df4ca650f1b7ab570a", + "reference": "cb0b6418f588952c9290b3df4ca650f1b7ab570a", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.1" + }, + "require-dev": { + "symfony/expression-language": "~2.8|~3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony HttpFoundation Component", + "homepage": "https://symfony.com", + "time": "2017-04-04T15:30:56+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "8285ab5faf1306b1a5ebcf287fe91c231a6de88e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/8285ab5faf1306b1a5ebcf287fe91c231a6de88e", + "reference": "8285ab5faf1306b1a5ebcf287fe91c231a6de88e", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "psr/log": "~1.0", + "symfony/debug": "~2.8|~3.0", + "symfony/event-dispatcher": "~2.8|~3.0", + "symfony/http-foundation": "~2.8.13|~3.1.6|~3.2" + }, + "conflict": { + "symfony/config": "<2.8" + }, + "require-dev": { + "symfony/browser-kit": "~2.8|~3.0", + "symfony/class-loader": "~2.8|~3.0", + "symfony/config": "~2.8|~3.0", + "symfony/console": "~2.8|~3.0", + "symfony/css-selector": "~2.8|~3.0", + "symfony/dependency-injection": "~2.8|~3.0", + "symfony/dom-crawler": "~2.8|~3.0", + "symfony/expression-language": "~2.8|~3.0", + "symfony/finder": "~2.8|~3.0", + "symfony/process": "~2.8|~3.0", + "symfony/routing": "~2.8|~3.0", + "symfony/stopwatch": "~2.8|~3.0", + "symfony/templating": "~2.8|~3.0", + "symfony/translation": "~2.8|~3.0", + "symfony/var-dumper": "~3.2" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/class-loader": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "", + "symfony/finder": "", + "symfony/var-dumper": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony HttpKernel Component", + "homepage": "https://symfony.com", + "time": "2017-04-05T12:52:03+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-11-14T01:06:16+00:00" + }, + { + "name": "symfony/routing", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "d6605f9a5767bc5bc4895e1c762ba93964608aee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/d6605f9a5767bc5bc4895e1c762ba93964608aee", + "reference": "d6605f9a5767bc5bc4895e1c762ba93964608aee", + "shasum": "" + }, + "require": { + "php": ">=5.5.9" + }, + "conflict": { + "symfony/config": "<2.8" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/common": "~2.2", + "psr/log": "~1.0", + "symfony/config": "~2.8|~3.0", + "symfony/expression-language": "~2.8|~3.0", + "symfony/http-foundation": "~2.8|~3.0", + "symfony/yaml": "~2.8|~3.0" + }, + "suggest": { + "doctrine/annotations": "For using the annotation loader", + "symfony/config": "For using the all-in-one router or any loader", + "symfony/dependency-injection": "For loading routes from a service", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Routing Component", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "time": "2017-03-02T15:58:09+00:00" + }, + { + "name": "symfony/twig-bridge", + "version": "v3.2.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/twig-bridge.git", + "reference": "cb632b9a81f0262d6eff9097e46903f272070015" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/cb632b9a81f0262d6eff9097e46903f272070015", + "reference": "cb632b9a81f0262d6eff9097e46903f272070015", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "twig/twig": "~1.28|~2.0" + }, + "require-dev": { + "symfony/asset": "~2.8|~3.0", + "symfony/console": "~2.8|~3.0", + "symfony/expression-language": "~2.8|~3.0", + "symfony/finder": "~2.8|~3.0", + "symfony/form": "^3.2.5", + "symfony/http-kernel": "~3.2", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/routing": "~2.8|~3.0", + "symfony/security": "~2.8|~3.0", + "symfony/security-acl": "~2.8|~3.0", + "symfony/stopwatch": "~2.8|~3.0", + "symfony/templating": "~2.8|~3.0", + "symfony/translation": "~2.8|~3.0", + "symfony/var-dumper": "~2.8.10|~3.1.4|~3.2", + "symfony/yaml": "~2.8|~3.0" + }, + "suggest": { + "symfony/asset": "For using the AssetExtension", + "symfony/expression-language": "For using the ExpressionExtension", + "symfony/finder": "", + "symfony/form": "For using the FormExtension", + "symfony/http-kernel": "For using the HttpKernelExtension", + "symfony/routing": "For using the RoutingExtension", + "symfony/security": "For using the SecurityExtension", + "symfony/stopwatch": "For using the StopwatchExtension", + "symfony/templating": "For using the TwigEngine", + "symfony/translation": "For using the TranslationExtension", + "symfony/var-dumper": "For using the DumpExtension", + "symfony/yaml": "For using the YamlExtension" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\Twig\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Twig Bridge", + "homepage": "https://symfony.com", + "time": "2017-03-28T08:44:09+00:00" + }, + { + "name": "twig/twig", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "9718186a5df85a4f7917e78d3ffcabc204c75d25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/9718186a5df85a4f7917e78d3ffcabc204c75d25", + "reference": "9718186a5df85a4f7917e78d3ffcabc204c75d25", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "~2.7", + "symfony/phpunit-bridge": "~3.3@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "http://twig.sensiolabs.org/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2017-03-22T15:41:51+00:00" + } + ], + "packages-dev": [ + { + "name": "heroku/heroku-buildpack-php", + "version": "v121", + "source": { + "type": "git", + "url": "https://github.com/heroku/heroku-buildpack-php.git", + "reference": "727aa850a02a7af94c9225237464be8e8c8ff6db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/heroku/heroku-buildpack-php/zipball/727aa850a02a7af94c9225237464be8e8c8ff6db", + "reference": "727aa850a02a7af94c9225237464be8e8c8ff6db", + "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": "2017-03-27T23:33:27+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/web/.DS_Store b/web/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3f4d255d754e5735f9385ff0e8c036bc5d90dab9 GIT binary patch literal 6148 zcmeH~L2uJA6vv;pZn&KgJxtn;z94a^P&e2ngeFC09Ckwrf&-u}A<-Hsi>oGG*t()z z_z>_7_EGi;_&D&M{Xk92q@EBee%15evEOs*pJY1*0MQ#oI{<9}km#h178ZXn>L;JG z6>gzCVaA9dKTh?>FxBB)v}%8 zj(YlJe==#xt%o~@$EW9)SL5r+=dWfOAaKJn_JH-5e8Wm@k{A9kOLcaJ?Ud6*SQ$i! z>JvPM0rX)owdE1A8}w;p8<0Z*myi-(jF0hG)HX`Y5?hO9Ei3XnAkDyEgA2qTLpg`< z%M8A$$Yn(~HN_cB$YK%WB_KBz33f4#fFtl<5up7+p_6*7l~uEKU}3HRs10m3hIKjv zDMzt-td&*lK@&C=)usx*VhEd#?TX_(*2=0)2f>#Q!EY9PLlNffIKDFBAUvzCbOaoM zI)PRD*rxOU<=yxHdXjr`1RQ~-A|M(^{!tI7#AoZ=ezT{T_ZJ?}AL z5NC{NW(ESID=>(O3&Eg8 zmA9J&6c`h4_f6L;=bU>_H8aNG`kfvCj9zomNt)?O;rzWqZs0LEt%1WB218%1fo9uB zsW^yhBR7C(mqN%GEK9&msg0~ zWY?#bf4q8G-~2KttQZ($odJvy&_-~f?9*ThK@fwR$U^1)p*8=_+^3BXx0$i1BC8XC zr21u6D5nVK&^!dOAw&|1E;qC3uFNj3*Jj#&%Oje@0D-nhfmM*o%^5f}-pxQ07(95H z3|LoV>V19w#rLgmRmtVy9!T3M3FUE3><0T8&b3yEsWcLW`0(=1+qsqc(k(ymBLK0h zK!6(6$7MX~M`-QA2$wk7n(7hhkJ}4Rwi-Vd(_ZFX1Yk7TXuB0IJYpo@kLb2G8m)E{ z`9v=!hi}fOytKckfN^C@6+Z*+MVI9-W_p@_3yyR#UYc0FTpD}i#k>c!wYCS)4v@E$ zchZCo=zV@)`v^$;V18ixdjFMY#q^2$wEX%{f(XD8POnsn$bpbClpC@hPxjzyO>pY|*pF3UU2tYcCN?rUk{Sskej70Mmu9vPwMYhO1m{AxAt(zqDT|0jP7FaX=6 V`?~}E4H^Id002ovPDHLkV1hC)G==~G literal 0 HcmV?d00001 diff --git a/web/images/lang-logo.png b/web/images/lang-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..34764d4ad9d510b87617a801e6f33b5272b18712 GIT binary patch literal 1066 zcmeAS@N?(olHy`uVBq!ia0vp^DImw*NX^{JVuh&!O$xOC;?RHbj?)&Ychg0<$)oSe{J!Ysq+_;(j@Q@!QS=-}mJ{&C>Yws`34~mVd_WAL}dlC%!vi#`IwA^PS7@Yk#yanOo`Q;Ph61 zD$|2j=Wl9Tm+G?yMa=q?*TNqy;@z;@=i63;1xst@BtL^Tv`KP9; zu&#NfPU_S735Q~uR9zfGHB&oQ?#p+N>B*Gczwt+TCf`wzG9 zc{j^Dt{-Z99n|NQShmJ?`r*KaC(~Zsv-AnewX9#=@7=H?W&Qg9G3g(+s#@>a=4V$M z;B22~E>g89Pxtw|uhYEL7~UD({Mo_kT$r>}Z|gSQ`BUF7@oJbdEm@yw|I~GRmo9j? zOXqkl<5%z5{qI!1CvDclX3K4KY$xk`MR2JGVXLs9t39*JZ}Z&mYul%S6j2 z{yA>6d!p5(loO!}0_D4oypd7AnyQ)E_3!!t#-+#puQO0#!u9^0nF+nl!a?!R~~EB@g3-8J4!JYe$&H$@8`5N zEA6*TdlNiiVWWvKd(pRsPpn2?mtUCtH~Mgr-%B}#1+#WC&U9*j{0stAGBNm%rvkp1Irwc?19Kn911UA?`L3UnBHij V6>_;r44BUuJYD@<);T3K0RW!E+};2H literal 0 HcmV?d00001 diff --git a/web/index.php b/web/index.php new file mode 100755 index 0000000..fc04d9b --- /dev/null +++ b/web/index.php @@ -0,0 +1,25 @@ +register(new Silex\Provider\MonologServiceProvider(), array( + 'monolog.logfile' => 'php://stderr', +)); + +// Register view rendering +$app->register(new Silex\Provider\TwigServiceProvider(), array( + 'twig.path' => __DIR__.'/views', +)); + +// Our web handlers + +$app->get('/', function() use($app) { + $app['monolog']->addDebug('logging output.'); + return $app['twig']->render('index.twig'); +}); + +$app->run(); diff --git a/web/stylesheets/main.css b/web/stylesheets/main.css new file mode 100644 index 0000000..55e6b65 --- /dev/null +++ b/web/stylesheets/main.css @@ -0,0 +1,36 @@ +.jumbotron { + background: #532F8C; + color: white; + padding-bottom: 80px; +} +.jumbotron .btn-primary { + background: #845ac7; + border-color: #845ac7; +} +.jumbotron .btn-primary:hover { + background: #7646c1; +} +.jumbotron p { + color: #d9ccee; + max-width: 75%; + margin: 1em auto 2em; +} +.jumbotron h1 { + font-size: 40px; +} +.navbar + .jumbotron { + margin-top: -20px; +} +.jumbotron .lang-logo { + display: block; + background: #B01302; + border-radius: 50%; + overflow: hidden; + width: 100px; + height: 100px; + margin: auto; + border: 2px solid white; +} +.jumbotron .lang-logo img { + max-width: 100%; +} diff --git a/web/views/header.html b/web/views/header.html new file mode 100644 index 0000000..dedaf77 --- /dev/null +++ b/web/views/header.html @@ -0,0 +1,5 @@ +PHP Getting Started on Heroku + + + + diff --git a/web/views/index.twig b/web/views/index.twig new file mode 100644 index 0000000..bcf409a --- /dev/null +++ b/web/views/index.twig @@ -0,0 +1,57 @@ +{% extends "layout.html" %} + +{% block content %} +
+
+ +

Getting Started with PHP on Heroku

+

This is a sample PHP application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.

+ Getting Started with PHP + Source on GitHub +
+
+
+ +
+
+
+

How this sample app works

+
    +
  • This app was deployed to Heroku, either using Git or by using Heroku Button on the repository.
  • + +
  • When Heroku received the source code, it fetched all the dependencies in the composer.json, creating a deployable slug.
  • +
  • The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the slug can be mounted and executed.
  • +
  • You can scale your app, manage it, and deploy over 150 add-on services, from the Dashboard or CLI.
  • +
+
+
+

Next Steps

+
    +
  • If you are following the Getting Started guide, then please head back to the tutorial and follow the next steps!
  • +
  • If you deployed this app by deploying the Heroku Button, then in a command line shell, run:
  • +
      +
    • git clone https://github.com/heroku/php-getting-started.git - this will create a local copy of the source code for the app
    • +
    • cd php-getting-started - change directory into the local source code repository
    • +
    • heroku git:remote -a <your-app-name> - associate the Heroku app with the repository
    • +
    • You'll now be set up to run the app locally, or deploy changes to Heroku
    • +
    +
+

Helpful Links

+ +
+
+ +
+ +{% endblock %} diff --git a/web/views/layout.html b/web/views/layout.html new file mode 100644 index 0000000..5d121d0 --- /dev/null +++ b/web/views/layout.html @@ -0,0 +1,12 @@ + + + + {% include 'header.html' %} + + + + {% include 'nav.html' %} + + {% block content %}{% endblock %} + + diff --git a/web/views/nav.html b/web/views/nav.html new file mode 100644 index 0000000..224b5e7 --- /dev/null +++ b/web/views/nav.html @@ -0,0 +1,33 @@ + From fe282430cf09eeb5a95ce34a46e45a7562a86d11 Mon Sep 17 00:00:00 2001 From: obeya edward obande Date: Sun, 28 Oct 2018 11:51:51 +0100 Subject: [PATCH 2/7] added gitignore --- .gitattributes | 2 ++ .gitignore | 20 ++++++++++++++++++++ web/views/nav.html | 12 ++++++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes index dfe0770..82b0cd0 100755 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ # Auto detect text files and perform LF normalization * text=auto + +.history \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8ad7f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# expo +.expo/ + +# dependencies +/node_modules + +# misc +.env.local +.env.development.local +.env.test.local +.env.production.local +.history +.DS_Store + +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.gitattributes \ No newline at end of file diff --git a/web/views/nav.html b/web/views/nav.html index 224b5e7..1304557 100644 --- a/web/views/nav.html +++ b/web/views/nav.html @@ -10,13 +10,13 @@