Skip to content

Commit

Permalink
chore: Prepare repo for work (#2)
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
Gashmob authored Apr 12, 2024
2 parents 3dc2702 + 3770441 commit 951ed12
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 73 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: composer
directory: /
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
10 changes: 10 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
changelog:
categories:
- title: New Features 🎉
labels: [enhancement]
- title: Bug fixes 🛠
labels: [bug]
- title: Dependencies updates
labels: [dependencies]
- title: Other changes
labels: ["*"]
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: "Check ${{ matrix.test }}"
runs-on: ubuntu-latest
strategy:
matrix:
test: [ 'unit-test', 'phpcs', 'psalm', 'phpstan' ]
steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: "8.2"

- name: Install dependencies
run: composer install
- name: Run tests
run: composer run ${{ matrix.test }}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024-Present Kevin Traini

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.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# PHP Composer project template
# Archict/core

This PHP template uses composer to manage dependencies and autoload.
> In the Land of PHP where the Shadows lie.
>
> One Brick to rule them all, One Brick to find them,
>
> One Brick to bring them all, and in the darkness bind them
>
> In the Land of PHP where the Shadows lie.
To begin use this template, just change the namespace in `composer.json`.
Heart of Archict, this library load and manage Bricks.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "gashmob/project-template",
"description": "Template for PHP project with composer",
"name": "archict/core",
"description": "Heart of Archict, this library load and manage Bricks",
"license": "MIT",
"type": "library",
"autoload": {
"psr-4": {
"Gashmob\\ProjectTemplate\\": "include/"
"Archict\\Core\\": "include/"
}
},
"require": {
"php": ">= 8.2"
},
"autoload-dev": {
"psr-4": {
"Gashmob\\ProjectTemplate\\": "tests/unit"
"Archict\\Core\\": "tests/unit"
}
},
"require-dev": {
Expand Down
Loading

0 comments on commit 951ed12

Please sign in to comment.