Skip to content

Commit

Permalink
1.6.0 default plain application
Browse files Browse the repository at this point in the history
  • Loading branch information
Asisyas committed Jan 25, 2023
0 parents commit 640c296
Show file tree
Hide file tree
Showing 20 changed files with 8,499 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ORM_DEFAULT_DRIVER=pdo_sqlite
ORM_DEFAULT_PATH=${BASE_PATH}/var/sqlite
ORM_DEFAULT_PROXY_DIR=${BASE_PATH}/var/proxies
41 changes: 41 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Skeleton CI
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.2

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
php_version: 8.2
path: vendor
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
- name: Composer install
uses: ramsey/composer-install@v2
with:
composer-options: --prefer-dist --no-progress --no-cache

- name: Validate composer
run: composer test-all
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/vendor/
/var/
.env.local
.phpunit.result.cache
node_modules
/public/build
20 changes: 20 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

if (!file_exists(__DIR__.'/src')) {
exit(0);
}

$finder = (new PhpCsFixer\Finder())
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
;

return (new PhpCsFixer\Config())
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'semicolon_after_instruction' => false,
))
->setRiskyAllowed(true)
->setFinder($finder);
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Micro PHP Framework

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions assets/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './styles/app.scss';
Empty file added assets/bootstrap.js
Empty file.
Empty file added assets/styles/app.scss
Empty file.
7 changes: 7 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);

$callback = include dirname(__FILE__) . '/../src/Kernel.php';
$callback()->run();
82 changes: 82 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"name": "micro/skeleton",
"description": "Micro Framework: Application skeleton",
"license": "MIT",
"type": "project",
"authors": [
{
"name": "Stanislau Komar",
"email": "[email protected]"
}
],
"require": {
"micro/kernel-app": "^1.6",
"micro/autowire": "^1.6",
"micro/plugin-configuration-helper": "^1.6",
"micro/plugin-console": "^1.6",
"micro/plugin-http-pack": "^1.6",
"micro/plugin-logger-monolog": "^1",
"vlucas/phpdotenv": "^5.4",
"micro/plugin-doctrine": "^1.6.0",
"micro/plugin-twig": "^1.6",
"micro/plugin-twig-webpack-encore": "^1.6"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9",
"vimeo/psalm": "^5",
"friendsofphp/php-cs-fixer": "^3.13"
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Test\\Unit\\": "tests/Unit"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
},
"scripts": {
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
"auto-scripts": [
"@test-all"
],
"front-build": [
"yarn install",
"yarn build"
],
"test-all": [
"@test-psalm",
"@test-phpstan",
"@test-php-cs-try",
"@test-unit"
],
"test-phpstan": [
"php vendor/bin/phpstan"
],
"test-psalm": [
"php vendor/bin/psalm"
],
"test-php-cs-try": [
"PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no"
],
"test-php-cs-fix": [
"PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --verbose --using-cache=no"
],
"test-unit": [
"php vendor/bin/phpunit"
]
}
}
Loading

0 comments on commit 640c296

Please sign in to comment.