Skip to content

Commit 6184309

Browse files
committed
feat: rename project to constructo
1 parent 3e8ee49 commit 6184309

118 files changed

Lines changed: 454 additions & 454 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# morph
1+
# constructo

compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
2-
morph:
2+
constructo:
33
platform: linux/amd64
4-
container_name: morph-app
4+
container_name: constructo-app
55
image: devitools/hyperf:8.3-dev
66
working_dir: /opt/www
77
volumes:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "The definitive serializer and deserializer for PHP",
99
"autoload": {
1010
"psr-4": {
11-
"Morph\\": "src/"
11+
"Constructo\\": "src/"
1212
},
1313
"files": [
1414
"functions/cast.php",
@@ -20,7 +20,7 @@
2020
},
2121
"autoload-dev": {
2222
"psr-4": {
23-
"Morph\\Test\\": "tests/"
23+
"Constructo\\Test\\": "tests/"
2424
}
2525
},
2626
"require": {

functions/cast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Cast;
5+
namespace Constructo\Cast;
66

77
use Stringable;
88

functions/crypt.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Crypt;
5+
namespace Constructo\Crypt;
66

77
use InvalidArgumentException;
88
use RuntimeException;
9-
use Morph\Support\Set;
9+
use Constructo\Support\Set;
1010

1111
use function base64_decode;
1212
use function base64_encode;
@@ -15,11 +15,11 @@
1515
use function openssl_decrypt;
1616
use function openssl_encrypt;
1717
use function random_bytes;
18-
use function Morph\Cast\arrayify;
19-
use function Morph\Cast\stringify;
20-
use function Morph\Json\decode;
21-
use function Morph\Json\encode;
22-
use function Morph\Util\extractString;
18+
use function Constructo\Cast\arrayify;
19+
use function Constructo\Cast\stringify;
20+
use function Constructo\Json\decode;
21+
use function Constructo\Json\encode;
22+
use function Constructo\Util\extractString;
2323
use function sprintf;
2424

2525
if (! defined('DEFAULT_CRYPT_KEY')) {

functions/json.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Json;
5+
namespace Constructo\Json;
66

77
use JsonException;
88

9-
use function Morph\Cast\arrayify;
10-
use function Morph\Cast\stringify;
9+
use function Constructo\Cast\arrayify;
10+
use function Constructo\Cast\stringify;
1111

1212
if (! function_exists(__NAMESPACE__ . '\decode')) {
1313
function decode(string $json): ?array

functions/notation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Notation;
5+
namespace Constructo\Notation;
66

77
use Jawira\CaseConverter\Convert;
8-
use Morph\Support\Reflective\Notation;
8+
use Constructo\Support\Reflective\Notation;
99

10-
use function Morph\Cast\stringify;
10+
use function Constructo\Cast\stringify;
1111

1212
if (! function_exists(__NAMESPACE__ . '\format')) {
1313
function format(string $string, Notation $notation): string

functions/util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Util;
5+
namespace Constructo\Util;
66

77
if (! function_exists(__NAMESPACE__ . '\extractArray')) {
88
/**

makefile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setup: ## Setup the project
1313

1414
bash: ## Start nginx bash
1515
@make up
16-
@$(COMPOSE_RUNNER) exec morph bash
16+
@$(COMPOSE_RUNNER) exec constructo bash
1717

1818
up: ## Start the project
1919
@$(COMPOSE_RUNNER) up -d
@@ -28,51 +28,51 @@ prune: ## Prune the project
2828
##@ Composer
2929

3030
install: ## Composer install dependencies
31-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph install
31+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo install
3232

3333
dump: ## Run the composer dump
34-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph dump-autoload
34+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo dump-autoload
3535

3636

3737
##@ Code analysis
3838

3939
lint: ## Perform code style lint
40-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint
40+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint
4141

4242
lint-phpcs: ## Perform code style list using phpcs
43-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint:phpcs
43+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint:phpcs
4444

4545
lint-phpstan: ## Perform code style list using phpstan
46-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint:phpstan
46+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint:phpstan
4747

4848
lint-phpmd: ## Perform code style list using phpmd
49-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint:phpmd
49+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint:phpmd
5050

5151
lint-rector: ## Perform code style list using rector
52-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint:rector
52+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint:rector
5353

5454
lint-psalm: ## Perform code style list using psalm
55-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph lint:psalm
55+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo lint:psalm
5656

5757
fix: ## Perform code style fix
58-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph fix
58+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo fix
5959

6060
##@ Tests
6161

6262
test: ## Execute the tests
63-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph test -- --coverage-html tests/.phpunit/html
63+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo test -- --coverage-html tests/.phpunit/html
6464

6565

6666
##@ CI
6767

6868
ci: ## Execute all analysis as CI does
69-
@$(COMPOSE_RUNNER) run --rm --entrypoint composer morph ci
69+
@$(COMPOSE_RUNNER) run --rm --entrypoint composer constructo ci
7070

7171

7272
## Quality
7373

7474
sonar: ## Run the sonar analysis
75-
@$(COMPOSE_RUNNER) run --rm --entrypoint "/bin/sonar-scanner" morph -Dsonar.host.url=https://sonarcloud.io -X
75+
@$(COMPOSE_RUNNER) run --rm --entrypoint "/bin/sonar-scanner" constructo -Dsonar.host.url=https://sonarcloud.io -X
7676

7777

7878
##@ Docs

src/Contract/Collectable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Morph\Contract;
5+
namespace Constructo\Contract;
66

77
use Closure;
88

0 commit comments

Comments
 (0)