Skip to content

Commit 8f091d1

Browse files
koromerzhinrestyled-commitsrenovate-botrestyled-io[bot]renovate[bot]
authored
First version with korojscommands (#106)
Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: koromerzhin <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Le TOULLEC Martial <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 765dddb commit 8f091d1

25 files changed

+24423
-0
lines changed

.all-contributorsrc

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"projectName": "phpfpm",
3+
"projectOwner": "hackariens",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"contributorsPerLine": 7,
12+
"commitConvention": "gitmoji",
13+
"badgeTemplate": "![All Contributors](https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg?style=flat-square)",
14+
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
15+
"contributors": [
16+
{
17+
"login": "koromerzhin",
18+
"name": "Le TOULLEC Martial",
19+
"avatar_url": "https://avatars0.githubusercontent.com/u/308012?v=4",
20+
"profile": "https://github.com/koromerzhin",
21+
"contributions": [
22+
"code"
23+
]
24+
},
25+
{
26+
"login": "renovate[bot]",
27+
"name": "renovate[bot]",
28+
"avatar_url": "https://avatars.githubusercontent.com/in/2740?v=4",
29+
"profile": "https://github.com/apps/renovate",
30+
"contributions": [
31+
"bug",
32+
"code",
33+
"maintenance"
34+
]
35+
},
36+
{
37+
"login": "dependabot[bot]",
38+
"name": "dependabot[bot]",
39+
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
40+
"profile": "https://github.com/apps/dependabot",
41+
"contributions": [
42+
"bug",
43+
"code",
44+
"maintenance"
45+
]
46+
}
47+
]
48+
}

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
STACK=phpfpm
2+
FOLDERPHAR=apps
3+
FILESQL=database_init/01_phpfpm.sql
4+
FOLDERLAMPY=lampy
5+
DOCKERCOMPOSEFILES=docker-compose.yml docker-compose-lampy.yml

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
on: [push]
3+
jobs:
4+
tests:
5+
runs-on: ${{ matrix.operating-system }}
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
operating-system: [ubuntu-20.04]
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
- name: Repository lampy
16+
uses: actions/checkout@v3
17+
with:
18+
submodules: recursive
19+
ref: 'v2.0'
20+
repository: koromerzhin/lampy
21+
path: lampy
22+
- name: Install npm dependencies
23+
run: npm install
24+
- name: 'set .env'
25+
run: 'cp .env.example .env'
26+
- name: 'SET BDD'
27+
run: npm run bdd:mariadb
28+
- name: 'Launch Lampy'
29+
run: cd lampy && npm run exec
30+
- name: 'Image pull'
31+
run: npm run docker:getpull-image
32+
- name: 'Build containers'
33+
run: npm run docker:deploy
34+
- name: 'Waiting'
35+
run: npm run docker:waiting
36+
- name: linter readme.md
37+
run: npm run lint:markdown

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
2+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
3+
# composer.lock
4+
node_modules
5+
apps/node_modules/
6+
apps/vendor
7+
apps/bin

.stylelintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"unit-no-unknown": true
5+
}
6+
}

README.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Welcome to @hackariens/phpfpm 👋
2+
3+
![Version](https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000)
4+
![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)
5+
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/hackariens/phpfpm/graphs/commit-activity)
6+
![Continuous Integration](https://github.com/hackariens/phpfpm/workflows/ci/badge.svg?branch=develop)
7+
8+
> Templates pour la création d'un nouveau projet phpfpm
9+
10+
## 🏠 [Homepage](https://github.com/hackariens/phpfpm#readme)
11+
12+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
13+
![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)
14+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
15+
16+
## Need
17+
18+
Software:
19+
20+
- npm
21+
- docker
22+
- repository koromerzhin/lampy
23+
24+
Config:
25+
26+
docker swarm
27+
28+
Hosts:
29+
30+
- phpmfpm.traefik.me
31+
32+
## Download
33+
34+
```sh
35+
git clone --recurse-submodules [email protected]:hackariens/phpfpm.git phpfpm
36+
cd phpfpm
37+
```
38+
39+
## Environnment
40+
41+
Edit .env with .env.example
42+
43+
## Install
44+
45+
``` sh
46+
npm install
47+
```
48+
49+
## Launch
50+
51+
``` sh
52+
npm run exec
53+
```
54+
55+
## Author
56+
57+
👤 **koromerzhin**
58+
59+
- Website: [https://www.letoullec.fr](https://www.letoullec.fr)
60+
- Twitter: [@koromerzhin](https://twitter.com/koromerzhin)
61+
- Github: [@koromerzhin](https://github.com/koromerzhin)
62+
- LinkedIn: [@koromerzhin](https://linkedin.com/in/koromerzhin)
63+
64+
## 🤝 Contributing
65+
66+
Contributions, issues and feature requests are welcome!
67+
Feel free to check
68+
[issues page](https://github.com/hackariens/phpfpm/issues).
69+
You can also take a look at the
70+
[contributing guide](https://github.com/hackariens/phpfpm/blob/develop/CONTRIBUTING.md).
71+
72+
## Show your support
73+
74+
Give a ⭐️ if this project helped you!
75+
76+
## 📝 License
77+
78+
Copyright © 2019 [koromerzhin](https://github.com/koromerzhin).
79+
80+
This project is
81+
[MIT](https://github.com/hackariens/phpfpm/blob/develop/LICENSE) licensed.
82+
83+
## ✨ Contributors
84+
85+
Thanks goes to these wonderful people
86+
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
87+
88+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
89+
<!-- prettier-ignore-start -->
90+
<!-- markdownlint-disable -->
91+
<table>
92+
<tbody>
93+
<tr>
94+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/koromerzhin"><img src="https://avatars0.githubusercontent.com/u/308012?v=4" width="100px;" alt=""/><br /><sub><b>Le TOULLEC Martial</b></sub></a></td>
95+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/apps/renovate"><img src="https://avatars.githubusercontent.com/in/2740?v=4" width="100px;" alt=""/><br /><sub><b>renovate[bot]</b></sub></a></td>
96+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/apps/dependabot"><img src="https://avatars.githubusercontent.com/in/29110?v=4" width="100px;" alt=""/><br /><sub><b>dependabot[bot]</b></sub></a></td>
97+
</tr>
98+
</tbody>
99+
</table>
100+
101+
<!-- markdownlint-restore -->
102+
<!-- prettier-ignore-end -->
103+
104+
<!-- ALL-CONTRIBUTORS-LIST:END -->
105+
106+
This project follows the
107+
[all-contributors](https://github.com/all-contributors/all-contributors)
108+
specification. Contributions of any kind welcome!
109+
110+
---
111+
112+
_This README was generated with ❤️ by
113+
[readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

apps/behat.yaml

Whitespace-only changes.

apps/composer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "apps/phpfpm",
3+
"type": "project",
4+
"license": "MIT",
5+
"description": "Template de projet en PHPFPM",
6+
"require": {},
7+
"config": {
8+
"bin-dir": "bin"
9+
},
10+
"scripts": {
11+
"phpcbf": "phpcbf -d memory_limit=-1 --report=diff -p --extensions=php",
12+
"phpcs-onlywarning": "phpcs src features/bootstrap tests --report=full --extensions=php --error-severity=0",
13+
"phpcs-onlyerror": "phpcs src features/bootstrap tests --report=full --extensions=php --warning-severity=0",
14+
"phpcs": "phpcs src features/bootstrap tests --report=full --extensions=php",
15+
"phpstan": "phpstan analyse src features/bootstrap tests --ansi",
16+
"phpmnd": "phpmnd src,features/bootstrap,tests",
17+
"behat": "behat --config behat.yaml",
18+
"phpunit": "phpunit",
19+
"phpunit-unit-integration": "phpunit --testsuite unit,integration"
20+
},
21+
"require-dev": {
22+
"behat/behat": "3.8.1",
23+
"phpstan/phpstan": "0.12.90",
24+
"squizlabs/php_codesniffer": "3.6.0",
25+
"povils/phpmnd": "2.4.0",
26+
"phpunit/phpunit": "9.5.5"
27+
}
28+
}

0 commit comments

Comments
 (0)