Skip to content

Commit

Permalink
feat(Application): update PHP Skeleton app
Browse files Browse the repository at this point in the history
  • Loading branch information
AlcidesRC committed Aug 24, 2024
1 parent 251d4bb commit 1a318ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 fonil.dev
Copyright (c) 2024 alcidesrc.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ else
RESET := ""
endif

#---

RANDOM_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")

###
# HELP
Expand Down Expand Up @@ -132,13 +129,13 @@ phpstan: ## QA: <composer phpstan>
tests: ## QA: <composer tests>
@$(eval testsuite ?= 'Unit')
@$(eval filter ?= '.')
@php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) --testsuite=$(testsuite) --filter=$(filter)
@composer tests --testsuite=$(testsuite) --filter=$(filter)
$(call taskDone)

.PHONY: tests-unit
tests-unit: ## QA: <composer tests-unit>
@$(eval filter ?= '.')
@php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) --testsuite=Unit --filter=$(filter)
@composer tests-unit --filter=$(filter)
$(call taskDone)

.PHONY: coverage
Expand Down
10 changes: 3 additions & 7 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To use this repository you need:

## Built with

This project was built with [Dockerized PHP](https://github.com/fonil/dockerized-php), a lightweight dockerized environment to build PHP applications.
This project was built with [Dockerized PHP](https://github.com/alcidesrc/dockerized-php), a lightweight dockerized environment to build PHP applications.


## Getting Started
Expand All @@ -37,7 +37,7 @@ Just clone the repository into your preferred path:

```bash
$ mkdir -p ~/path/to/my-new-project && cd ~/path/to/my-new-project
$ git clone [email protected]:fonil/php-skeleton.git .
$ git clone [email protected]:alcidesrc/php-skeleton.git .
```

### Conventions
Expand Down Expand Up @@ -107,10 +107,6 @@ Additionally a *Makefile* is provided with frequently used commands:
· coverage QA: <composer coverage>
```

> [!NOTE]
>
> This file is really useful when you create a container with a project based on this repository and you want to run those commands from outside the container, directly from your *host*. To do so just copy and paste the included steps on your main *Makefile* and adjust the constants accordingly.
##### Installing Dependencies

```bash
Expand Down Expand Up @@ -154,7 +150,7 @@ Only the latest major version receives security fixes.

### Reporting a Vulnerability

If you discover a security vulnerability within this project, please [open an issue here](https://github.com/fonil/php-skeleton/issues). All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within this project, please [open an issue here](https://github.com/alcidesrc/php-skeleton/issues). All security vulnerabilities will be promptly addressed.

## License

Expand Down
6 changes: 3 additions & 3 deletions src/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fonil/php-skeleton",
"name": "alcidesrc/php-skeleton",
"description": "Application skeleton for projects based on PHP",
"type": "project",
"keywords": ["bootstrap", "skeleton", "php", "TDD", "DDD", "clean code", "boilerplate", "best practices"],
Expand Down Expand Up @@ -44,7 +44,7 @@
"phpcs": "vendor/bin/phpcs -p --colors --standard=phpcs.xml",
"phpcbf": "vendor/bin/phpcbf -p --colors --standard=phpcs.xml",
"phpstan": "vendor/bin/phpstan analyse --ansi --memory-limit=1G --no-progress --configuration=phpstan.neon",
"phpunit": "php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")",
"phpunit": "vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")",

"tests": [
"@linter app/ tests/",
Expand All @@ -54,7 +54,7 @@
"tests-unit": [
"@linter app/ tests/",
"@phpcs",
"@phpunit --testsuite=Unit --coverage-text"
"@phpunit --coverage-text --testsuite=Unit"
],

"coverage": [
Expand Down

0 comments on commit 1a318ec

Please sign in to comment.