Skip to content

Instantly share code, notes, and snippets.

@muhamedoufi
Last active February 19, 2024 11:03
Show Gist options
  • Save muhamedoufi/689a0cf692662ed43f5ea0c51d03557f to your computer and use it in GitHub Desktop.
Save muhamedoufi/689a0cf692662ed43f5ea0c51d03557f to your computer and use it in GitHub Desktop.
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.5",
"zendframework/zendframework": "~2.5",
"endroid/qrcode": "1.6.0",
"acelaya/zf2-acqrcode": "0.2.0",
"twbs/bootstrap": "4.0.0",
"zf-commons/zfc-base": "^0.1.2",
"zf-commons/zfc-user": "1.x-dev",
"mohit-singh/zf2auth-acl": "^2.0",
"phpoffice/phpexcel": "^1.8"
}
}
<?php
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment