-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from adamculp/master
Initial application skeleton load
- Loading branch information
Showing
35 changed files
with
7,250 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
composer.phar | ||
/vendor/ | ||
|
||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock | ||
.serverless | ||
/phpunit.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright (c) 2020 Laminas Project a Series of LF Projects, LLC. (https://getlaminas.org/) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# s3-log-analyzer | ||
TBA | ||
# Beachcasts/S3-Log-Analyzer | ||
|
||
# Setup Steps | ||
|
||
Start the project | ||
|
||
```bash | ||
composer create project mezzio | ||
``` | ||
|
||
Require Bref | ||
|
||
```bash | ||
composer require bref/bref | ||
``` | ||
|
||
Initialize Bref | ||
|
||
```bash | ||
vendor/bin/bref init | ||
``` | ||
|
||
Require Flysystem for AWS | ||
|
||
```bash | ||
composer require league/flysystem-aws-s3-v3 | ||
``` | ||
|
||
Require Doctrine Dbal | ||
|
||
```bash | ||
composer require doctrine/dbal | ||
``` | ||
|
||
Deploy to AWS Lambda using Serverless | ||
|
||
```bash | ||
sls deploy | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/mezzio/mezzio-skeleton for the canonical source repository | ||
* @copyright https://github.com/mezzio/mezzio-skeleton/blob/master/COPYRIGHT.md | ||
* @license https://github.com/mezzio/mezzio-skeleton/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
chdir(__DIR__ . '/../'); | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
$config = include 'config/config.php'; | ||
|
||
if (! isset($config['config_cache_path'])) { | ||
echo "No configuration cache path found" . PHP_EOL; | ||
exit(0); | ||
} | ||
|
||
if (! file_exists($config['config_cache_path'])) { | ||
printf( | ||
"Configured config cache file '%s' not found%s", | ||
$config['config_cache_path'], | ||
PHP_EOL | ||
); | ||
exit(0); | ||
} | ||
|
||
if (false === unlink($config['config_cache_path'])) { | ||
printf( | ||
"Error removing config cache file '%s'%s", | ||
$config['config_cache_path'], | ||
PHP_EOL | ||
); | ||
exit(1); | ||
} | ||
|
||
printf( | ||
"Removed configured config cache file '%s'%s", | ||
$config['config_cache_path'], | ||
PHP_EOL | ||
); | ||
exit(0); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"name": "mezzio/mezzio-skeleton", | ||
"description": "Laminas mezzio skeleton. Begin developing PSR-15 middleware applications in seconds!", | ||
"type": "project", | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"laminas", | ||
"mezzio", | ||
"skeleton", | ||
"middleware", | ||
"psr", | ||
"psr-7", | ||
"psr-11", | ||
"psr-15" | ||
], | ||
"homepage": "https://mezzio.dev", | ||
"support": { | ||
"docs": "https://docs.mezzio.dev/mezzio/", | ||
"issues": "https://github.com/mezzio/mezzio-skeleton/issues", | ||
"source": "https://github.com/mezzio/mezzio-skeleton", | ||
"rss": "https://github.com/mezzio/mezzio-skeleton/releases.atom", | ||
"chat": "https://laminas.dev/chat", | ||
"forum": "https://discourse.laminas.dev" | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"laminas": { | ||
"component-whitelist": [ | ||
"mezzio/mezzio", | ||
"mezzio/mezzio-helpers", | ||
"mezzio/mezzio-router", | ||
"laminas/laminas-httphandlerrunner", | ||
"mezzio/mezzio-fastroute", | ||
"mezzio/mezzio-platesrenderer" | ||
] | ||
} | ||
}, | ||
"require": { | ||
"php": "^7.1", | ||
"bref/bref": "^0.5.25", | ||
"doctrine/dbal": "^2.10", | ||
"laminas/laminas-component-installer": "^2.1.2", | ||
"laminas/laminas-config-aggregator": "^1.2", | ||
"laminas/laminas-diactoros": "^2.3.0", | ||
"laminas/laminas-servicemanager": "^3.4", | ||
"laminas/laminas-stdlib": "^3.2.1", | ||
"laminas/laminas-zendframework-bridge": "^1.0", | ||
"league/flysystem-aws-s3-v3": "^1.0", | ||
"mezzio/mezzio": "^3.2.1", | ||
"mezzio/mezzio-fastroute": "^3.0.3", | ||
"mezzio/mezzio-helpers": "^5.3", | ||
"mezzio/mezzio-platesrenderer": "^2.2" | ||
}, | ||
"require-dev": { | ||
"laminas/laminas-development-mode": "^3.2", | ||
"mezzio/mezzio-tooling": "^1.3", | ||
"phpspec/prophecy": "^1.10.3", | ||
"phpunit/phpunit": "^7.5.20 || ^8.5.2 || ^9.0.1", | ||
"roave/security-advisories": "dev-master", | ||
"squizlabs/php_codesniffer": "^2.9.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/App/src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"AppTest\\": "test/AppTest/" | ||
} | ||
}, | ||
"scripts": { | ||
"post-create-project-cmd": [ | ||
"@development-enable" | ||
], | ||
"development-disable": "laminas-development-mode disable", | ||
"development-enable": "laminas-development-mode enable", | ||
"development-status": "laminas-development-mode status", | ||
"mezzio": "mezzio --ansi", | ||
"check": [ | ||
"@cs-check", | ||
"@test" | ||
], | ||
"clear-config-cache": "php bin/clear-config-cache.php", | ||
"cs-check": "phpcs", | ||
"cs-fix": "phpcbf", | ||
"serve": "php -S localhost:8080 -t public/", | ||
"test": "phpunit --colors=always", | ||
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml" | ||
} | ||
} |
Oops, something went wrong.