Files
hdk-core/README.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

2022-12-19 17:20:04 +08:00
# Hyperf Development Kit Core
The Common HDK for Any project by Hyperf.
> DEPRECATED!!!
>
> This Branch is outdated,
> only used for support old versions.
> Such as Hyperf 2.2 or less.
>
> Please UPGRADE your version to Hyperf 3.0
> and HDK-Core 0.2.*
2022-12-19 17:20:04 +08:00
## PHP Versions
This version will work on Hyperf version 2.2 and above.
## Getting Started
PHP 8.0 or above and Composer is expected to be installed on our system.
### Installing Composer
For instructions on how to install Composer visit [getcomposer.org](https://getcomposer.org/download/).
### Installing
After cloning this repository, change into the newly created directory and run
```bash
2023-01-13 18:14:13 +08:00
composer config secure-http false \
&& composer config repo.lux-map composer https://satis.luxcreo.cn/ \
&& composer require singularity/hdk-core \
&& php bin/hyperf.php vendor:publish singularity/hdk-core
2022-12-19 17:20:04 +08:00
```
This will install all dependencies needed for the project.
## Running the Tests
All tests can be run by executing
```bash
2023-01-13 18:14:13 +08:00
composer test
2022-12-19 17:20:04 +08:00
```
2023-01-13 18:14:13 +08:00
`Pest` will automatically find all tests inside the `tests` directory and run them based on the configuration in the `phpunit.xml` file.
2022-12-19 17:20:04 +08:00
## Built With
- [PHP](https://secure.php.net/)
- [Composer](https://getcomposer.org/)
2023-01-13 18:14:13 +08:00
- [Hyperf](https://hyperf.wiki/2.2/)
- [Pest](https://pestphp.com/)
2022-12-19 17:20:04 +08:00
## License
This project is licensed under the MIT License - see the [LICENCE.md](LICENCE.md) file for details.