Skip to content

Commit 0f55603

Browse files
Merge branch 'release/0.4.0'
2 parents 903f797 + f2b35d2 commit 0f55603

36 files changed

+1261
-323
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
vendor
33
.php-cs-fixer.cache
4+
.phpcs-cache

.phpcs.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<ruleset
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
5+
6+
<arg name="basepath" value="."/>
7+
<arg name="cache" value=".phpcs-cache"/>
8+
<arg name="colors"/>
9+
<arg name="extensions" value="php"/>
10+
<arg name="parallel" value="80"/>
11+
12+
<!-- Show progress -->
13+
<arg value="p"/>
14+
15+
<!-- Paths to check -->
16+
<file>.</file>
17+
<exclude-pattern>vendor/*</exclude-pattern>
18+
19+
<!-- Include all rules from PSR-12 Coding Standard -->
20+
<rule ref="PSR12"/>
21+
</ruleset>

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CHANGELOG
22

3+
## v0.4.0 - [2023/08/02]
4+
5+
- Added more Applications, Requests and Connection Statistics classes
6+
- Added ListenerPass class
7+
- Added AccessLog class
8+
- Updated Unit and Config classes
9+
- Added Pest tests
10+
- Added linter
11+
312
## v0.3.2 - [2023/07/19]
413

514
- Fixed issues with nullable objects and values

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,30 @@ _THIS PROJECT IN DEVELOPMENT. DON'T USE IT IN PRODUCTION_
99

1010
| Version | Supported |
1111
|---------|--------------------|
12-
| 0.3.x | :white_check_mark: |
13-
| < 0.3.1 | :x: |
12+
| 0.4.x | :white_check_mark: |
13+
| < 0.3.x | :x: |
1414

1515
## Quick start
1616

1717
### Pre-requirements
1818

19-
* PHP >= 8.2
20-
* PHP curl extension
21-
* Composer >= 2
19+
* [PHP](https://www.php.net/) >= 8.2
20+
* [PHP curl extension](https://www.php.net/manual/en/book.curl.php)
21+
* [Composer](https://getcomposer.org/) >= 2
22+
* [Nginx unit](https://unit.nginx.org/installation/) >= 1.30.0
2223

2324
### Installation
24-
* Create folder `mkdir example-php-project`
25-
* Open folder cd `example-php-project`
26-
* Init composer `composer init`
27-
* Add package `composer require pavlusha311245/unit-php-sdk`
25+
26+
1. Create folder `mkdir example-php-project`
27+
2. Open folder cd `example-php-project`
28+
3. Init composer `composer init`
29+
4. Add package `composer require pavlusha311245/unit-php-sdk`
2830

2931
Congratulations! You installed package. Now you can use the full power of this SDK.
3032

3133
* Create `index.php` file
3234
* Paste code and change this line `socket: <your socket path to Nginx Unit>` for your configuration
35+
3336
```php
3437
<?php
3538

@@ -44,6 +47,7 @@ $unit = new Unit(
4447

4548
$unit->getConfig();
4649
```
50+
4751
* Run index.php
4852

4953
#### Happy coding 😊
@@ -63,6 +67,7 @@ read [here](https://docs.github.com/en/get-started/quickstart/contributing-to-pr
6367

6468
## Security Policy
6569

66-
If you find bugs and vulnerabilities, please contact [[email protected]](mailto:[email protected]).
70+
If you find bugs and vulnerabilities, please
71+
6772

6873
More info [here](SECURITY.md)

SECURITY.md

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

33
## Supported Versions
44

5-
| Version | Supported |
6-
| ------- | ------------------ |
7-
| 0.3.x | :white_check_mark: |
8-
| < 0.3.1 | :x: |
5+
| Version | Nginx Unit Capability | Supported |
6+
|---------|:----------------------|--------------------|
7+
| 0.4.x | 1.30.0 | :white_check_mark: |
8+
| < 0.3.x | 1.30.0 | :x: |
99

1010
## Vulnerability Report
1111

12-
Please report all package vulnerabilities as well as dependencies that may also compromise the safe use of this project to [email protected]. Each vulnerability will be treated as a priority for fixes.
12+
Please report all package vulnerabilities as well as dependencies that may also compromise the safe use of this project
13+
to [email protected]. Each vulnerability will be treated as a priority for fixes.

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "pavlusha311245/unit-php-sdk",
3-
"type": "library",
4-
"description": "This project allows developers to interact with the Nginx Unit web server through php classes",
3+
"version": "0.4.0",
4+
"type": "sdk",
5+
"description": "This project allows developers to interact with the Nginx Unit web server through PHP classes",
56
"license": "Apache-2.0",
67
"homepage": "https://github.com/Pavlusha311245/nginx-unit-php-sdk",
78
"keywords": [
@@ -41,6 +42,7 @@
4142
}
4243
},
4344
"scripts": {
44-
"test": "./vendor/bin/pest"
45+
"test": "./vendor/bin/pest",
46+
"lint": "./vendor/bin/php-cs-fixer fix --rules=@PSR12 ."
4547
}
4648
}

0 commit comments

Comments
 (0)