https://github.com/hametuha/hametwoo
A utility classes for WooCommerce development.
https://github.com/hametuha/hametwoo
woocommerce wordpress wordpress-php-library
Last synced: 5 months ago
JSON representation
A utility classes for WooCommerce development.
- Host: GitHub
- URL: https://github.com/hametuha/hametwoo
- Owner: hametuha
- License: gpl-3.0
- Created: 2017-02-02T04:25:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-04T08:50:41.000Z (over 1 year ago)
- Last Synced: 2025-12-28T02:13:23.869Z (6 months ago)
- Topics: woocommerce, wordpress, wordpress-php-library
- Language: PHP
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hametwoo
A utility classes for WooCommerce development.
[](https://travis-ci.org/hametuha/hametwoo)
## How to Use
Include via composer. In your composer.json:
```
{
"require": {
"hametuha/hametwoo": "~0.9"
}
}
```
This library is useful for making Payment Gateways.
## Development
Composer, Node.js, and Docker are required. At first, clone GitHub repository.
```
git clone git@github.com:hametuha/hametwoo.git
```
Then install dependencies.
```
composer install
npm install
```
Run local environment.
```
npm start
```
Run test.
```
# PHP Unit test in Docker.
npm test
# PHP Code Sniffer
composer lint
# PHP Code Beautifier
composer format
```
To enable mailhog for debug, follow the instruction below.
```
# Get docker container ID.
# Notice: run npm start before this step.
npm run path
# You will get container ID at the base name e.g. 0597019337936df00cda1cf5a15016e0
# Save it as .wp_install_path
touch .wp_install_path
echo 0597019337936df00cda1cf5a15016e0 > .wp_install_path
# Restart docker.
npm run update
# Open http://localhost:8025
```
## License
GPL 3.0 and later.
## Change Log
### 0.8.5
- Fix custom email to automatically fired.
### 0.8.4
- Add custom email for cancellation.
### 0.8.2
- Add dependency check `Compatibility::check_dependency( $plugin_files_array )`.
- Add utility functions for get post data for Gateway API.
### 0.8.0
First release.