Skip to content

Commit dc65f9e

Browse files
luizcmarinvjik
andauthored
Fix docs (#309)
Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent ced1afd commit dc65f9e

File tree

5 files changed

+44
-47
lines changed

5 files changed

+44
-47
lines changed

Diff for: 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

Diff for: README.md

+21-31
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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="100px">
3+
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px" alt="Yii">
44
</a>
55
<a href="https://www.microsoft.com/sql-server" target="_blank">
6-
<img src="https://avatars0.githubusercontent.com/u/6154722" height="100px">
6+
<img src="https://avatars0.githubusercontent.com/u/6154722" height="100px" alt="MSSQL">
77
</a>
8-
<h1 align="center">MSSQL Server driver for Yii Database</h1>
8+
<h1 align="center">Yii Database MSSQL Server driver</h1>
99
<br>
1010
</p>
1111

12+
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-mssql/v/stable.png)](https://packagist.org/packages/yiisoft/db-mssql)
13+
[![Total Downloads](https://poser.pugx.org/yiisoft/db-mssql/downloads.png)](https://packagist.org/packages/yiisoft/db-mssql)
14+
[![rector](https://github.com/yiisoft/db-mssql/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-mssql/actions/workflows/rector.yml)
15+
[![codecov](https://codecov.io/gh/yiisoft/db-mssql/branch/master/graph/badge.svg?token=UF9VERNMYU)](https://codecov.io/gh/yiisoft/db-mssql)
16+
[![StyleCI](https://github.styleci.io/repos/114756477/shield?branch=master)](https://github.styleci.io/repos/114756477?branch=master)
17+
1218
MSSQL Server driver for [Yii Database](https://github.com/yiisoft/db) is a package for working with [MSSQL] databases in PHP.
1319

1420
The package provides a set of classes for connecting to a [MSSQL] database, creating and executing commands, and working with data.
@@ -21,47 +27,38 @@ have access to a SQL Server database and the necessary credentials to connect to
2127
[MSSQL]: https://www.microsoft.com/sql-server
2228
[MSSQL extension]: https://pecl.php.net/package/sqlsrv
2329

24-
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-mssql/v/stable.png)](https://packagist.org/packages/yiisoft/db-mssql)
25-
[![Total Downloads](https://poser.pugx.org/yiisoft/db-mssql/downloads.png)](https://packagist.org/packages/yiisoft/db-mssql)
26-
[![rector](https://github.com/yiisoft/db-mssql/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-mssql/actions/workflows/rector.yml)
27-
[![codecov](https://codecov.io/gh/yiisoft/db-mssql/branch/master/graph/badge.svg?token=UF9VERNMYU)](https://codecov.io/gh/yiisoft/db-mssql)
28-
[![StyleCI](https://github.styleci.io/repos/114756477/shield?branch=master)](https://github.styleci.io/repos/114756477?branch=master)
29-
3030
## Support version
3131

32-
| PHP | Mssql Version | CI-Actions
33-
|:----:|:------------------------:|:---:|
32+
| PHP | MSSQL Version | CI-Actions |
33+
|-----|---------------|------------|
3434
|**8.0 - 8.2**| **2017 - 2022**|[![build](https://github.com/yiisoft/db-mssql/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-mssql/actions/workflows/build.yml) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fdb-mssql%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-mssql/master) [![static analysis](https://github.com/yiisoft/db-mssql/actions/workflows/static.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-mssql/actions/workflows/static.yml) [![type-coverage](https://shepherd.dev/github/yiisoft/db-mssql/coverage.svg)](https://shepherd.dev/github/yiisoft/db-mssql)
3535

3636
## Installation
3737

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

4040
```shell
4141
composer require yiisoft/db-mssql
4242
```
4343

4444
## Documentation
4545

46-
English:
47-
48-
- To configure connection to MSSQL database check [Connecting MSSQL](https://github.com/yiisoft/db/blob/master/docs/en/connection/mssql.md).
49-
- [Check the documentation docs](https://github.com/yiisoft/db/blob/master/docs/en/README.md) to learn about usage.
50-
51-
Português - Brasil:
46+
To configure connection to MSSQL database check [Connecting MSSQL](https://github.com/yiisoft/db/blob/master/docs/guide/en/connection/mssql.md).
5247

53-
- Para configurar a conexão com MSSQL leia [Connecting MSSQL](https://github.com/yiisoft/db/blob/master/docs/pt-BR/connection/mssql.md).
54-
- [Confira a documentação](https://github.com/yiisoft/db/blob/master/docs/pt-BR/README.md) para aprender como usar.
55-
56-
Testing:
48+
[Check the documentation docs](https://github.com/yiisoft/db/blob/master/docs/guide/en/README.md) to learn about usage.
5749

5850
- [Internals](docs/internals.md)
5951

60-
## Support
61-
6252
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.
6353
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
6454

55+
## License
56+
57+
The Yii Database MSSQL Server driver is free software. It is released under the terms of the BSD License.
58+
Please see [`LICENSE`](./LICENSE.md) for more information.
59+
60+
Maintained by [Yii Software](https://www.yiiframework.com/).
61+
6562
## Support the project
6663

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

Diff for: composer.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@
1313
"type": "library",
1414
"license": "BSD-3-Clause",
1515
"support": {
16-
"issues": "https://github.com/yiisoft/db-mssql/issues",
16+
"issues": "https://github.com/yiisoft/db-mssql/issues?state=open",
17+
"source": "https://github.com/yiisoft/db-mssql",
1718
"forum": "https://www.yiiframework.com/forum/",
1819
"wiki": "https://www.yiiframework.com/wiki/",
1920
"irc": "ircs://irc.libera.chat:6697/yii",
20-
"chat": "https://t.me/yii3en",
21-
"source": "https://github.com/yiisoft/db-mssql"
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-pdo": "*",

Diff for: docs/internals.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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. [MSSQL 2022](../../../docker-compose.yml)
13+
1. [MSSQL 2022](../docker-compose.yml)
1414

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

@@ -20,9 +20,7 @@ docker compose up -d
2020

2121
## Unit testing
2222

23-
The package is tested with [PHPUnit](https://phpunit.de/).
24-
25-
The following steps are required to run the tests:
23+
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
2624

2725
1. Run the docker container for the dbms.
2826
2. Install the dependencies of the project with composer.
@@ -49,7 +47,7 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static
4947
./vendor/bin/psalm
5048
```
5149

52-
## Rector
50+
## Code style
5351

5452
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
5553
use either newest or any specific version of PHP:
@@ -58,11 +56,10 @@ use either newest or any specific version of PHP:
5856
./vendor/bin/rector
5957
```
6058

61-
## Composer require checker
62-
63-
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
59+
## Dependencies
6460

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

6764
```shell
6865
./vendor/bin/composer-require-checker

Diff for: 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)