alh-software / endpoint-plugin
A custom WP plugin when a visitor navigates to its endpoint, the plugin has to send an HTTP request to a REST API endpoint.
Requires
- php: ^7.2
Requires (Dev)
- brain/monkey: ^2.4
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2025-10-20 15:05:38 UTC
README
A simple Task Management System
About
Description: A custom WP plugin when a visitor navigates to its endpoint, the plugin has to send an HTTP request to a REST API endpoint.
Installation
Edit your `composer.jsonfile and add the following line into"require": {...}`:
"alh-software/endpoint-plugin": "1.0.0"
And then run:
composer install
OR, you can just run the following command, since our plugin is available via "Packagist" The PHP Package Repository:
composer require alh-software/endpoint-plugin
Plugin should be installed in `wp-content/plugins/` directory.
Activation
Go to WP Admin Dashboard > Plugins and click `Activate` link under the new plugin.
Run the requests
To run the plugin functionality you should call the url:
example.com?myusers=yes
Where `example.com` is your WP Website with the plugin installed.
Run the tests
You can run the project tests using:
cd DIR/wp-content/plugins/alh-endpoint
Where `DIR` is your WP Website directory.
Then run:
vendor/bin/phpunit