Skip to content

Commit 989ef76

Browse files
committed
Rename package
1 parent dd66059 commit 989ef76

6 files changed

+25
-24
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to PHP Database Migration Validator
1+
# Contributing to PHP DB Migration Validator
22

33
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
44

@@ -29,4 +29,4 @@ If you notice compliance oversights, please send a patch via pull request.
2929
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
3030
[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
3131
[PSR-12]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
32-
[General problems]: https://github.com/antonkomarev/php-database-migration-validator/issues
32+
[General problems]: https://github.com/antonkomarev/php-db-migration-validator/issues

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# PHP Database Migration Validator
1+
# PHP DB Migration Validator
22

3-
![php-database-migration-validator](https://user-images.githubusercontent.com/1849174/149621805-f81bc379-e25e-4f98-8e5c-4102c0cad749.gif)
3+
![php-db-migration-validator](https://user-images.githubusercontent.com/1849174/149621805-f81bc379-e25e-4f98-8e5c-4102c0cad749.gif)
44

55
<p align="center">
66
<a href="https://discord.gg/83Yd8MgYp9"><img src="https://img.shields.io/static/v1?logo=discord&label=&message=Discord&color=36393f&style=flat-square" alt="Discord"></a>
7-
<a href="https://github.com/antonkomarev/php-database-migration-validator/releases"><img src="https://img.shields.io/github/release/antonkomarev/php-database-migration-validator.svg?style=flat-square" alt="Releases"></a>
8-
<a href="https://github.com/antonkomarev/php-database-migration-validator/blob/master/LICENSE"><img src="https://img.shields.io/github/license/antonkomarev/php-database-migration-validator.svg?style=flat-square" alt="License"></a>
7+
<a href="https://github.com/antonkomarev/php-db-migration-validator/releases"><img src="https://img.shields.io/github/release/antonkomarev/php-db-migration-validator.svg?style=flat-square" alt="Releases"></a>
8+
<a href="https://github.com/antonkomarev/php-db-migration-validator/blob/master/LICENSE"><img src="https://img.shields.io/github/license/antonkomarev/php-db-migration-validator.svg?style=flat-square" alt="License"></a>
99
</p>
1010

1111
## Installation
1212

1313
Pull in the package through Composer.
1414

1515
```shell
16-
php composer require antonkomarev/php-database-migration-validator
16+
php composer require antonkomarev/php-db-migration-validator
1717
```
1818

1919
## Usage
@@ -23,36 +23,36 @@ php composer require antonkomarev/php-database-migration-validator
2323
**Validate file**
2424

2525
```shell
26-
php vendor/bin/php-database-migration-validator --rule=irreversible migrations/file.php
26+
php vendor/bin/php-db-migration-validator --rule=irreversible migrations/file.php
2727
```
2828

2929
**Validate many files**
3030

3131
```shell
32-
php vendor/bin/php-database-migration-validator --rule=irreversible migrations/file.php migrations/file2.php
32+
php vendor/bin/php-db-migration-validator --rule=irreversible migrations/file.php migrations/file2.php
3333
```
3434

3535
**Validate file by wildcard**
3636

3737
```shell
38-
php vendor/bin/php-database-migration-validator --rule=irreversible migrations/2022_*
38+
php vendor/bin/php-db-migration-validator --rule=irreversible migrations/2022_*
3939
```
4040

4141
**Validate files in directory**
4242

4343
```shell
44-
php vendor/bin/php-database-migration-validator --rule=irreversible migrations/
44+
php vendor/bin/php-db-migration-validator --rule=irreversible migrations/
4545
```
4646

4747
**Validate files in many directories**
4848

4949
```shell
50-
php vendor/bin/php-database-migration-validator --rule=irreversible app/migrations/ vendor/migrations/
50+
php vendor/bin/php-db-migration-validator --rule=irreversible app/migrations/ vendor/migrations/
5151
```
5252

5353
## License
5454

55-
- `PHP Database Migration Validator` package is open-sourced software licensed under the [MIT license](LICENSE) by [Anton Komarev].
55+
- `PHP DB Migration Validator` package is open-sourced software licensed under the [MIT license](LICENSE) by [Anton Komarev].
5656

5757
## About CyberCog
5858

bin/php-database-migration-validator bin/php-db-migration-validator

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
use AK\DatabaseMigrationValidator\IrreversibleMigrationsValidator;
4+
use AK\DbMigrationValidator\IrreversibleMigrationsValidator;
55

66
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
77
echo 'Warning: The console should be invoked via the CLI version of PHP, not the ' . PHP_SAPI . ' SAPI' . PHP_EOL;
@@ -59,7 +59,7 @@ foreach ($argv as $key => $argument) {
5959

6060
if ($command === 'help') {
6161
printFormattedMessageToStream(
62-
"\BPHP Database Migration Validator\C\n"
62+
"\BPHP DB Migration Validator\C\n"
6363
. "\B--------------------------------\C\n"
6464
. "by Anton Komarev <[email protected]>\n\n",
6565
STDOUT

composer.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "antonkomarev/php-database-migration-validator",
2+
"name": "antonkomarev/php-db-migration-validator",
33
"description": "Validate PHP database migration files",
44
"type": "library",
55
"license": "MIT",
66
"keywords": [
77
"database",
8+
"db",
89
"migration",
910
"validation"
1011
],
@@ -16,12 +17,12 @@
1617
"role": "Developer"
1718
}
1819
],
19-
"homepage": "https://komarev.com/sources/php-database-migration-validator",
20+
"homepage": "https://komarev.com/sources/php-db-migration-validator",
2021
"support": {
2122
"email": "[email protected]",
22-
"issues": "https://github.com/antonkomarev/php-database-migration-validator/issues",
23-
"source": "https://github.com/cybercog/php-database-migration-validator",
24-
"docs": "https://github.com/cybercog/php-database-migration-validator"
23+
"issues": "https://github.com/antonkomarev/php-db-migration-validator/issues",
24+
"source": "https://github.com/cybercog/php-db-migration-validator",
25+
"docs": "https://github.com/cybercog/php-db-migration-validator"
2526
},
2627
"require": {
2728
"php": "^7.1|^8.0",
@@ -31,13 +32,13 @@
3132
},
3233
"autoload": {
3334
"psr-4": {
34-
"AK\\DatabaseMigrationValidator\\": "src/"
35+
"AK\\DbMigrationValidator\\": "src/"
3536
}
3637
},
3738
"autoload-dev": {
3839
},
3940
"bin": [
40-
"bin/php-database-migration-validator"
41+
"bin/php-db-migration-validator"
4142
],
4243
"config": {
4344
"sort-packages": true

src/FileFinder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AK\DatabaseMigrationValidator;
5+
namespace AK\DbMigrationValidator;
66

77
use RuntimeException;
88

src/IrreversibleMigrationsValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AK\DatabaseMigrationValidator;
5+
namespace AK\DbMigrationValidator;
66

77
use DomainException;
88
use Exception;

0 commit comments

Comments
 (0)