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.

1.6.0 2024-05-06 12:59 UTC

README

Contributors Forks Stargazers Issues License

Unit Tests PHP Versions

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.

Report Bug · Request Feature

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

  1. Install the package via composer:
composer require helsingborg-stad/wpservice
  1. 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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.