Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Dec 6, 2019
1 parent 9644893 commit 50585ee
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

## How to contribute

```
update the PHP scripts in this dir
if ( new script ) {
update "./config.inc"
}
if ( new hook function ) {
update "/swoole_runtime.cc" (search "hook_func")
}
run "/remake_library.sh" (recompile the library)
```
Just new pull request (and we need unit tests for new features)

#### Code requirements

+ PHP 7.1+
+ PSR1 and PSR2
+ Strict type

then new pull request (we need unit tests for new features)
## Develop

+ [Document](https://wiki.swoole.com/wiki/page/p-library.html)
+ [Examples](https://github.com/swoole/library/tree/master/examples)

## Compatibility Patch (Swoole version <= v4.4.12)

```php
define('SWOOLE_USE_SHORTNAME', true); // or false (it depends on you)
```

## Code requirements
## License

1. PHP 7.1+
2. PSR1 and PSR2
3. Strict type
Apache License Version 2.0 see http://www.apache.org/licenses/LICENSE-2.0.html

0 comments on commit 50585ee

Please sign in to comment.