Skip to content

Commit e6c05d6

Browse files
committed
Intial commit
0 parents  commit e6c05d6

32 files changed

Lines changed: 4046 additions & 0 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
/.idea
3+
.phpcs-cache
4+
index.php

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.PHONY: help
2+
help: ## affiche cet aide
3+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
4+
5+
.PHONY: lint
6+
lint: vendor/autoload.php ## affiche les erreurs de formatage de code
7+
php vendor/bin/phpcs -s
8+
php vendor/bin/ecs check
9+
php vendor/bin/phpstan
10+
11+
vendor/autoload.php: composer.lock # installe les dépendances PHP
12+
composer update
13+
composer dump-autoload

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "devscast/pexels",
3+
"description": "PHP client for https://pexels.com",
4+
"keywords": [
5+
"pexels",
6+
"stock image",
7+
"images",
8+
"api"
9+
],
10+
"type": "library",
11+
"license": "MIT",
12+
"autoload": {
13+
"psr-4": {
14+
"Devscast\\Pexels\\": "src/"
15+
}
16+
},
17+
"authors": [
18+
{
19+
"name": "bernard-ng",
20+
"email": "bernard@devscast.tech"
21+
}
22+
],
23+
"minimum-stability": "stable",
24+
"require-dev": {
25+
"phpstan/phpstan": "^1.8",
26+
"squizlabs/php_codesniffer": "^3.7",
27+
"symplify/easy-coding-standard": "^11.0",
28+
"vimeo/psalm": "^4.24",
29+
"symfony/var-dumper": "^6.1"
30+
},
31+
"require": {
32+
"php": ">=8.1",
33+
"symfony/http-client": "^6.1",
34+
"symfony/serializer": "^6.1",
35+
"symfony/property-access": "^6.1"
36+
}
37+
}

0 commit comments

Comments
 (0)