helsingborg-stad / wpservice
Simplifies WordPress integration by providing a centralized WpService that exposes global WordPress functions in a streamlined manner. Simplify your development workflow and enhance WordPress integration with ease.
Requires
- php: ^8.1
Requires (Dev)
- helsingborg-stad/phpcs: ^0.3.5
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2024-05-06 13:00:18 UTC
README
WpService
Simplifies WordPress integration by providing a centralized WpService that exposes global WordPress functions in a streamlined manner. Simplify your development workflow and enhance WordPress integration with ease.
About WpService
Enable the use of global WordPress functions in plugins and themes where applying Interface Segregation. Different flavors of the WordPress Service can be utilized by applying available decorators.
Getting Started
Installation
- Install the package via composer:
composer require helsingborg-stad/wpservice
- Use the WpService in your plugin or theme:
use WpService\Implementations\NativeWpService; $wpService = new NativeWpService(); $wpService->getTheId();
Built With
- PHP
Tests
Run tests
Run composer test
in the terminal.
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License.