No description
- CSS 90.7%
- PHP 9%
- JavaScript 0.3%
| classes | ||
| css | ||
| inc | ||
| js | ||
| partials | ||
| tests | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| phpcs.xml.dist | ||
| phpunit.xml.dist | ||
| README.md | ||
| README.txt | ||
| rgou-challenge.php | ||
RGOU Challenge Crawler
A simple crawler to display some data as a table using a shortcode.
This is a Formidable Form Applicant Challenge.
Install
- Click to download version 1.0.1
- You can either:
- Upoload and install via
Add Newbutton on the plugins page on your Wordpress site; or; - Unzip under
wp-contents/plugins. But heads up: move the folderrgou-challenge-v1.0.1/rgou-challengetowp-contents/plugins.
- Activate the plugin on the plugins page, or using WP-CLI if you have installed:
cd PATH_TO_YOUR_WORDPRESS_INSTALL/
wp plugin activate rgou-challenge
Using
Shortcode
You can place the shortcode [rgou-challenge] in posts or pages.
Admin area
On the menu there's a new item called RGOU Challenge Crawler. Once entered, if there's no previous data, it requests and caches.
The Refresh button forces a new request.
Reset via command line
The following command resets the cache. The next access - either using the shorcode or using the admin page - will make a new request.
wp rgou-challenge-reset
Tests and coding standards
To run tests with PHPUnit and check coding standards with PHP Code Sniffer using Wordpress standards, first install the depencies using Composer:
cd PATH_TO_YOUR_WORDPRESS_INSTALL/wp-contents/plugins/rgou-challenge
composer install
To run tests:
composer test
To validate coding standards:
composer phpcs
To auto-fix coding standards:
composer phpcs:fix