Skip to content

Commit 1255fc8

Browse files
committed
Initial Commit
1 parent df7b8a9 commit 1255fc8

21 files changed

+2211
-0
lines changed

.env.example

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Basic Software Config
3+
# Set SOFTWARE_PRODUCTION to true on production systems
4+
# See https://www.php.net/manual/en/timezones.php for SOFTWARE_TIMEZONE
5+
#
6+
# Loglevels are based on RFC5424 | https://datatracker.ietf.org/doc/html/rfc5424
7+
# Possible Loglevels are: DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
8+
#
9+
SOFTWARE_TITLE=Demo
10+
SOFTWARE_TIMEZONE=Europe/Berlin
11+
SOFTWARE_PRODUCTION=false
12+
SOFTWARE_LOGLEVEL=Warning
13+
14+
#
15+
# Database Setup
16+
# If using a different port, please use the following Format:
17+
# DB_HOST=db:3306 - db is your hostname and 3306 is your port
18+
#
19+
DB_HOST=db
20+
DB_NAME=db
21+
DB_USER=db
22+
DB_PASSWORD=db

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/vendor/
2+
/.ddev/
3+
/.idea/
4+
**/.env
5+
/public/test.php
6+
/data/log/*
7+
!/data/log/.gitkeep
8+
/data/cache/*
9+
!/data/cache/.gitkeep
10+
/data/persistent/*
11+
!/data/persistent/.gitkeep

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Skeleton
2+
This is the basic project setup for our new Projects, which includes the most basic stuff for PHP Webapp Development.
3+
4+
## Requirements
5+
- PHP 8.1 or higher
6+
- MySQL/MariaDB Database
7+
- Composer
8+
- Shell Access for Console
9+
10+
## Setup
11+
1. Run the Command `composer create-project npcorenet/skeleton <Project Name>`
12+
2. Navigate to the subdirectory created
13+
3. Copy the `.env.example` file and rename it to `.env`
14+
4. Adjust the Data in the `.env`
15+
5. Your new Project is now ready to work on
16+
17+
## Libraries used
18+
- [league/container](https://github.com/thephpleague/container)
19+
- [league/route](https://github.com/thephpleague/route)
20+
- [monolog/monolog](https://github.com/Seldaek/monolog)
21+
- [envms/fluentpdo](https://github.com/envms/fluentpdo)
22+
- [symfony/console](https://github.com/symfony/console)
23+
- [symfony/dotenv](https://github.com/symfony/dotenv)
24+
- [laminas/laminas-diactoros](https://github.com/laminas/laminas-diactoros/)
25+
- [laminas/laminas-httphandlerrunner](https://github.com/laminas/laminas-httphandlerrunner)

bin/console.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php declare(strict_types=1);
2+
3+
use Symfony\Component\Console\Application;
4+
5+
require_once __DIR__.'/../vendor/autoload.php';
6+
7+
$console = new Application();
8+
9+
$console->add(new \App\Command\CacheClearCommand());
10+
11+
$console->run();

composer.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "npcorenet/skeleton",
3+
"type": "template",
4+
"description": "The npcorenet Project skeleton",
5+
"keywords": ["template", "skeleton", "npcorenet"],
6+
"autoload": {
7+
"psr-4": {
8+
"App\\": "src/"
9+
}
10+
},
11+
"authors": [
12+
{
13+
"name": "namePlayer",
14+
"email": "robin@npcore.net",
15+
"role": "Owner"
16+
}
17+
],
18+
"require": {
19+
"php": ">=8.1",
20+
"league/container": "^4.2",
21+
"league/route": "^5.1",
22+
"envms/fluentpdo": "^2.2",
23+
"laminas/laminas-diactoros": "^2.17",
24+
"laminas/laminas-httphandlerrunner": "^2.1",
25+
"symfony/dotenv": "^6.1",
26+
"symfony/console": "^6.1",
27+
"monolog/monolog": "^3.2"
28+
}
29+
}

0 commit comments

Comments
 (0)