alh-software/endpoint-plugin

There is no license information available for the latest version (dev-master) of this package.

A custom WP plugin when a visitor navigates to its endpoint, the plugin has to send an HTTP request to a REST API endpoint.

dev-master 2020-03-14 16:04 UTC

This package is not auto-updated.

Last update: 2024-05-06 07:49:46 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