Skip to content

Commit 0877931

Browse files
committed
first commit
0 parents  commit 0877931

File tree

12 files changed

+4724
-0
lines changed

12 files changed

+4724
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/build/
2+
/vendor/
3+
# /composer.lock
4+
5+
/.php_cs.cache

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGELOG
2+
3+
## 1.0 - 2020-12-03
4+
5+
* Initial release

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Jérôme Gamez <[email protected]>
4+
Copyright (c) kreait GmbH
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# PHP Boilerplate
2+
3+
A boilerplate for new composer based PHP projects.
4+
5+
## Getting started
6+
7+
```bash
8+
# With composer
9+
$ composer create-project kreait/php-boilerplate new-project
10+
11+
# With git
12+
$ git clone [email protected]:kreait/php-boilerplate.git new-project && cd $_ && rm -rf .git && git init
13+
```
14+
15+
### Update `composer.json`
16+
17+
Replace the Namespaces in the `autoload` and `autoload-dev` sections with your project's namespaces
18+
and run `composer dump-autoload`.
19+
20+
### (Optional) Update `.gitattributes`
21+
22+
Remove the comments in `.gitattributes` so that unneeded files for your package won't get included in your releases.
23+
24+
### (Optional) Add `composer.lock` to the `.gitignore` file
25+
26+
If you're creating an application instead of a library, it is considered good practice to commit the `composer.lock` file together with the rest of the code.
27+
28+
### Start coding! :smile:

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "dipcode/authentication-gov",
3+
"description": "A PHP library that implements www.ama.gov.pt authentication.",
4+
"keywords": ["AMA", "Authentication", "government", "oAuth2"],
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Dipcode",
9+
"email": "[email protected]",
10+
"homepage": "https://dipcode.com"
11+
}
12+
],
13+
"require": {
14+
"php": "^7.2.5",
15+
"guzzlehttp/guzzle": "^7.0"
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "^7.0",
19+
"friendsofphp/php-cs-fixer": "^2.0"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Dipcode\\": "src/"
24+
}
25+
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Dipcode\\Unit\\": "tests/"
29+
}
30+
},
31+
"config": {
32+
"platform": {
33+
"php": "7.2.5"
34+
},
35+
"sort-packages": true
36+
}
37+
}

0 commit comments

Comments
 (0)