Skip to content

Commit 02685f0

Browse files
luizcmarinvjik
andauthored
Fix docs (#340)
Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent 38df004 commit 02685f0

File tree

5 files changed

+54
-55
lines changed

5 files changed

+54
-55
lines changed

LICENSE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Redistribution and use in source and binary forms, with or without
55
modification, are permitted provided that the following conditions
66
are met:
77

8-
* Redistributions of source code must retain the above copyright
8+
* Redistributions of source code must retain the above copyright
99
notice, this list of conditions and the following disclaimer.
10-
* Redistributions in binary form must reproduce the above copyright
10+
* Redistributions in binary form must reproduce the above copyright
1111
notice, this list of conditions and the following disclaimer in
1212
the documentation and/or other materials provided with the
1313
distribution.
14-
* Neither the name of Yii Software nor the names of its
14+
* Neither the name of Yii Software nor the names of its
1515
contributors may be used to endorse or promote products derived
1616
from this software without specific prior written permission.
1717

README.md

+28-36
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,68 @@
11
<p align="center">
22
<a href="https://github.com/yiisoft" target="_blank">
3-
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="80px">
3+
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="80px" alt="Yii">
44
</a>
55
<a href="https://www.mysql.com/" target="_blank">
6-
<img src="https://labs.mysql.com/common/logos/mysql-logo.svg" height="80px">
6+
<img src="https://labs.mysql.com/common/logos/mysql-logo.svg" height="80px" alt="MySQL">
77
</a>
8-
<h1 align="center">MySQL and MariaDB driver for Yii Database</h1>
8+
<a href="https://www.mariadb.com/" target="_blank">
9+
<img src="https://mariadb.com/wp-content/uploads/2019/11/mariadb-logo-vertical_blue.svg" height="80px" alt="MariaDB">
10+
</a>
11+
<h1 align="center">Yii Database MySQL and MariaDB driver</h1>
912
<br>
1013
</p>
1114

15+
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-mysql/v/stable.png)](https://packagist.org/packages/yiisoft/db-mysql)
16+
[![Total Downloads](https://poser.pugx.org/yiisoft/db-mysql/downloads.png)](https://packagist.org/packages/yiisoft/db-mysql)
17+
[![rector](https://github.com/yiisoft/db-mysql/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-mysql/actions/workflows/rector.yml)
18+
[![codecov](https://codecov.io/gh/yiisoft/db-mysql/branch/master/graph/badge.svg?token=gsKVx3WQt4)](https://codecov.io/gh/yiisoft/db-mysql)
19+
[![StyleCI](https://github.styleci.io/repos/145220107/shield?branch=master)](https://github.styleci.io/repos/145220107?branch=master)
20+
[![type-coverage](https://shepherd.dev/github/yiisoft/db-mysql/coverage.svg)](https://shepherd.dev/github/yiisoft/db-mysql)
21+
1222
MySQL driver for [Yii Database](https://github.com/yiisoft/db) allows developers to access and interact with [MySQL]
13-
and [MariaDb] databases.
14-
It provides a set of classes and methods for connecting to a [MySQL] and [MariaDb] database,
23+
and [MariaDB] databases.
24+
It provides a set of classes and methods for connecting to a [MySQL] and [MariaDB] database,
1525
executing SQL queries, and managing data within the database.
1626
The package is designed to be easy to use and integrate,
17-
and supports a wide range of [MySQL], [MariaDb] features and functions.
27+
and supports a wide range of [MySQL], [MariaDB] features and functions.
1828
It also includes support for transactions, database schema management, and error handling.
1929

2030
It is used in [Yii Framework] but can be used separately.
2131

2232
[MariaDB]: https://mariadb.org/
2333
[MySQL]: https://www.mysql.com/
2434

25-
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-mysql/v/stable.png)](https://packagist.org/packages/yiisoft/db-mysql)
26-
[![Total Downloads](https://poser.pugx.org/yiisoft/db-mysql/downloads.png)](https://packagist.org/packages/yiisoft/db-mysql)
27-
[![rector](https://github.com/yiisoft/db-mysql/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-mysql/actions/workflows/rector.yml)
28-
[![codecov](https://codecov.io/gh/yiisoft/db-mysql/branch/master/graph/badge.svg?token=gsKVx3WQt4)](https://codecov.io/gh/yiisoft/db-mysql)
29-
[![StyleCI](https://github.styleci.io/repos/145220107/shield?branch=master)](https://github.styleci.io/repos/145220107?branch=master)
30-
[![type-coverage](https://shepherd.dev/github/yiisoft/db-mysql/coverage.svg)](https://shepherd.dev/github/yiisoft/db-mysql)
31-
3235
## Support version
3336

34-
| PHP |Mysql/MariaDb| CI-Actions
35-
|:-----------:|:-----------:|:------------:|
37+
| PHP | MySQL/MariaDB Version | CI-Actions |
38+
|-----------|-----------------------|------------|
3639
| **8.0-8.2** |**5.7-8.0**/**10.4-10.10**|[![build](https://github.com/yiisoft/db-mysql/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-mysql/actions/workflows/build.yml) [![ansi-mode](https://github.com/yiisoft/db-mysql/actions/workflows/ansi-mode.yml/badge.svg)](https://github.com/yiisoft/db-mysql/actions/workflows/ansi-mode.yml) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fdb-mysql%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-mysql/master) [![static analysis](https://github.com/yiisoft/db-mysql/actions/workflows/static.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-mysql/actions/workflows/static.yml)
3740

3841
## Installation
3942

40-
The package could be installed via composer:
43+
The package could be installed with [Composer](https://getcomposer.org):
4144

4245
```shell
4346
composer require yiisoft/db-mysql
4447
```
4548

4649
## Documentation
4750

48-
English:
49-
50-
- [Connection config for MySQL and MariaDb](https://github.com/yiisoft/db/blob/master/docs/en/connection/mysql.md).
51-
- [Check the documentation](https://github.com/yiisoft/db/blob/master/docs/en/README.md) to learn about usage.
52-
53-
Português - Brasil:
54-
55-
- Para configurar a conexão com Mysql, MariaDb leia [Connecting MySQL/MariaDb](https://github.com/yiisoft/db/blob/master/docs/pt-BR/connection/mysql.md).
56-
- [Confira a documentação](https://github.com/yiisoft/db/blob/master/docs/pt-BR/README.md) para aprender como usar.
57-
58-
Testing:
51+
[Check the documentation](https://github.com/yiisoft/db/blob/master/docs/guide/en/README.md) to learn about usage
5952

53+
- [Connection config for MySQL and MariaDB](https://github.com/yiisoft/db/blob/master/docs/guide/en/connection/mysql.md)
6054
- [Internals](docs/internals.md)
6155

62-
## Support
63-
6456
If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
6557
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
6658

59+
## License
60+
61+
The Yii Database MySQL and MariaDB driver is free software. It is released under the terms of the BSD License.
62+
Please see [`LICENSE`](./LICENSE.md) for more information.
63+
64+
Maintained by [Yii Software](https://www.yiiframework.com/).
65+
6766
## Support the project
6867

6968
[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective&logoColor=7eadf1&labelColor=555555)](https://opencollective.com/yiisoft)
@@ -75,10 +74,3 @@ You may also check out other [Yii Community Resources](https://www.yiiframework.
7574
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
7675
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
7776
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)
78-
79-
## License
80-
81-
The Yii DataBase MySQL, MariaDb Extension is free software. It is released under the terms of the BSD License.
82-
Please see [`LICENSE`](./LICENSE.md) for more information.
83-
84-
Maintained by [Yii Software](https://www.yiiframework.com/).

composer.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@
1313
"homepage": "https://www.yiiframework.com/",
1414
"license": "BSD-3-Clause",
1515
"support": {
16+
"issues": "https://github.com/yiisoft/db-mysql/issues?state=open",
1617
"source": "https://github.com/yiisoft/db-mysql",
17-
"issues": "https://github.com/yiisoft/db-mysql/issues",
1818
"forum": "https://www.yiiframework.com/forum/",
1919
"wiki": "https://www.yiiframework.com/wiki/",
20-
"chat": "https://t.me/yii3en",
21-
"irc": "ircs://irc.libera.chat:6697/yii"
20+
"irc": "ircs://irc.libera.chat:6697/yii",
21+
"chat": "https://t.me/yii3en"
2222
},
23+
"funding": [
24+
{
25+
"type": "opencollective",
26+
"url": "https://opencollective.com/yiisoft"
27+
},
28+
{
29+
"type": "github",
30+
"url": "https://github.com/sponsors/yiisoft"
31+
}
32+
],
2333
"require": {
2434
"php": "^8.0",
2535
"ext-ctype": "*",

docs/internals.md

+9-12
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,26 @@ All our packages have github actions by default, so you can test your [contribut
1010

1111
For greater ease it is recommended to use docker containers, for this you can use the [docker-compose.yml](https://docs.docker.com/compose/compose-file/) file that is in the docs folder.
1212

13-
1. [MySQL 8](../../../docker-compose.yml)
14-
2. [MariaDB 10.11](../../../docker-compose-mariadb.yml)
13+
1. [MySQL 8](../docker-compose.yml)
14+
2. [MariaDB 10.11](../docker-compose-mariadb.yml)
1515

1616
For running the docker containers you can use the following command:
1717

18-
MySQL 8.0.
18+
MySQL:
1919

2020
```shell
2121
docker compose up -d
2222
```
2323

24-
MariaDB 10.11.
24+
MariaDB:
2525

2626
```shell
2727
docker compose -f docker-compose-mariadb.yml up -d
2828
```
2929

3030
## Unit testing
3131

32-
The package is tested with [PHPUnit](https://phpunit.de/).
33-
34-
The following steps are required to run the tests:
32+
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
3533

3634
1. Run the docker container for the dbms.
3735
2. Install the dependencies of the project with composer.
@@ -58,7 +56,7 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static
5856
./vendor/bin/psalm
5957
```
6058

61-
## Rector
59+
## Code style
6260

6361
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
6462
use either newest or any specific version of PHP:
@@ -67,11 +65,10 @@ use either newest or any specific version of PHP:
6765
./vendor/bin/rector
6866
```
6967

70-
## Composer require checker
71-
72-
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
68+
## Dependencies
7369

74-
To run the checker, execute the following command:
70+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if
71+
all dependencies are correctly defined in `composer.json`. To run the checker, execute the following command:
7572

7673
```shell
7774
./vendor/bin/composer-require-checker

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" failOnRisky="true" failOnWarning="true" executionOrder="default" resolveDependencies="true" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/10.1/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" failOnRisky="true" failOnWarning="true" executionOrder="default" resolveDependencies="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd">
33
<coverage/>
44
<php>
55
<ini name="error_reporting" value="-1"/>

0 commit comments

Comments
 (0)