Crypt for WordPress Demo
WordPress demo plugin for the composer package Crypt for WordPress
by Thomas Zwirner · github.com/threadi/crypt-for-wordpress-demo
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/threadi/crypt-for-wordpress-demo/archive/refs/heads/master.zipThis repository contains a WordPress demo plugin for Crypt for WordPress. It is intended to show the possibilities of the plugin. It is not intended to be used actively in a productive system. You are welcome to use the programming as a template for your own use of Crypt for WordPress.
Use the demo in your project
- Download the actual release ZIP (not the source ZIP).
- Install it in your WordPress and activate it.
- You will see a demo encryption and decryption on your dashboard.
Use it for development of the demo plugin
- Checkout the repository in your development environment in the plugin directory or download the actual source ZIP.
- Run
composer installto get the sources. - Go to the backend of your development environment and activate the plugin.
- You will see a demo encryption and decryption on your dashboard.
Use it for development of the Crypt for WordPress composer package
- Checkout the repository in your development environment in the plugin directory or download the actual source ZIP.
- Checkout the repository https://github.com/threadi/crypt-for-wordpress in your hostings main directory (where wp-admin and wp-config.php are located).
- Run:
chmod 755 composer.sh - Run
./composer.sh - Go to the backend of your development environment and activate the plugin.
- You are now able to develop on Crypt for WordPress and test the changes with the demo plugin.
Check for WordPress Coding Standards
Initialize
composer install
Run
vendor/bin/phpcs .
Repair
vendor/bin/phpcbf .
Check for WordPress VIP Coding Standards
Hint: this check runs against the VIP-GO-platform which is not our target for this plugin. Many warnings can be ignored.
Run
vendor/bin/phpcs --extensions=php --ignore=*/vendor/* --standard=WordPress-VIP-Go .
Check PHP compatibility
vendor/bin/phpcs -p crypt-for-wordpress-demo.php --standard=PHPCompatibilityWP
Analyse with PHPStan
vendor/bin/phpstan analyse