HyperfDevelopmentKit
Beijing, China

singularity/hdk-pay (1.13.0)

Published 2025-12-02 18:00:43 +08:00 by ch4o5 in HDK/hdk-pay

Installation

{
	"repositories": [{
			"type": "composer",
			"url": ""
		}
	]
}
composer require singularity/hdk-pay:1.13.0

About this package

支付平台

HDK-Pay

A sdk to connect to LuxPay.

PHP Versions

This version will work on PHP version 8.0 and above.

Getting Started

PHP 8.0 or above and Composer is expected to be installed on our system.

Installing

composer require singularity/hdk-pay

This will install all dependencies needed for the project.

Configurations

You need to add an item http_request.pay.rpc_base_uri in config/autoload/common.php. Usually, the value of this item will be https://pay.luxcreo.cn or https://test-pay.luxcreo.cn. Don't need the following /.

Running the Tests

All tests can be run by executing

vendor/bin/phpunit

phpunit will automatically find all tests inside the test directory and run them based on the configuration in the phpunit.xml file.

Testing Approach

The test for the class Greeting verifies that the return value of the sayHello method returns the string "Hello {name}", where {name} is the value passed through to the constructor.

Running the Application

PHP has an in-built server for local development. This can be started by executing

php -S localhost:8000 -t public

Then open your browser at http://localhost:8000/example.php

You should see the text "Hello Ada Lovelace" on your screen.

Built With

License

This project is licensed under the MIT License - see the LICENCE.md file for details.

Dependencies

Dependencies

ID Version
composer/composer >=2.7.7
ext-bcmath *
hyperf/config ~3.1.0
hyperf/constants 3.1.*
hyperf/contract ~3.1.0
hyperf/di ~3.1.0
hyperf/guzzle 3.1.*
hyperf/http-server ^3.1
moneyphp/money ^4.1
nesbot/carbon *
php >=8.2
singularity/hdk-core ^1.0.0

Development Dependencies

ID Version
firebase/php-jwt ^6.8.0
friendsofhyperf/pest-plugin-hyperf 3.1.*
hyperf/testing ^3.1
swoole/ide-helper ^4.8.13
Details
Composer
2025-12-02 18:00:43 +08:00
5
MIT
446 KiB
Assets (1)
Versions (43) View all
1.13.0 2025-12-02
1.12.4 2025-12-02
1.12.3 2025-12-01
1.12.0 2025-12-01
1.11.1 2025-11-27