GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - walterrdev/phpcompat: WordPress Plugin: PHP Compatibility Checker

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

86 Commits
86 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
Docker
Docker
 
 
plugin
plugin
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.jshintignore
.jshintignore
 
 
.jshintrc
.jshintrc
 
 
.nvmrc
.nvmrc
 
 
.wp-env.json
.wp-env.json
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
Jenkinsfile
Jenkinsfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
jest-puppeteer.config.js
jest-puppeteer.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
phpcs.xml
phpcs.xml
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 
readme.txt
readme.txt
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

PHP Compatibility Checker

An easy way to check your site for PHP Compatibility.

Setup Development Environment

Before starting your workstation will need the following:

  • Docker
  • Node.js v20 LTS (recommended via nvm)

If using nvm, run nvm use in the project root to switch to the correct Node version.

  1. Clone the repository

[email protected]:wpengine/phpcompat.git

  1. Setup WP-Env
make setup && make start

When finished, a local WordPress will be configured at http://localhost:8888/wp-admin.

WordPress Credentials:

URL: http://localhost:8888/wp-admin

Admin User: admin

Admin Password: password

If anything goes wrong and you suspect your local is frozen, you can always make choose-violence to rebuild the local environment and containers. Hopefully you never have to choose violence. :)

Build and Testing

make build

Note, assets will also build during the install phase.

You can run all testing (all lints and unit tests) together with the following:

make test

The project uses the Brain Monkey library for unit testing. Once setup run the following for unit tests:

make test-unit

The project uses the WordPress e2e tests. Run the following for e2e tests:

make test-e2e

We also use PHP_CodeSniffer with WordPress Coding Standards and JSHint with WordPress' JS Standards. Linting will automagically be setup for you if you use Visual Studio Code. If you want to run it manually use the following:

make test-lint

or, to run an individual lint (php or javascript), use one of the following:

make test-lint-php
make test-lint-javascript

Screw something up? You can reset your environment with the following. It will stop the environment and cleanup and the build files as well as anything downloaded.

make reset

Preparing for release

To generate a .zip that can be uploaded through any normal WordPress plugin installation workflow, simply run the following:

make release

About

WordPress Plugin: PHP Compatibility Checker

wordpress.org/plugins/php-compatibility-checker/

Resources

Readme

Code of conduct

Code of conduct
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.