GravityView is a commercial plugin available from https://gravityview.co. The plugin is hosted here on a public GitHub repository to better facilitate community contributions from developers and users. If you have a suggestion, a bug report, or a patch for an issue, feel free to submit it here.
If you are using the plugin on a live site, please purchase a valid license from the website. We cannot provide support to anyone that does not hold a valid license key.
To install the plugin, clone this repo to your WordPress plugins folder and activate it. Alternatively, you can download the latest release to your WordPress plugins folder and then activate it.
If you wish to make changes to the plugin, you need to install developer dependencies. First, a couple of prerequisites:
- Make sure that you have the full plugin source code by either cloning this repo or downloading the source code (not the versioned release) from the Releases section
- Install Composer
- Install Node.js
- We recommend a Node.js version manager for Linux/macOS or Windows
- Run
npm install -g grunt-cli
if this the first time you've installed Node.js or switched to a new version
Next, install dependencies:
- Run
composer install
to install Composer dependencies - Run
npm install
to install Node.js dependencies
To compile/minify UI assets, use the following commands:
grunt sass
&grunt postcss
to compile and minify CSS filesgrunt uglify
to minify JavaScript filesgrunt imagemin
to minify images
The plugin uses PHPUnit as part of the development process. We offer preconfigured Docker containers and a custom Bash script to facilitate running tests against multiple PHP and WordPress versions in a predictable environment. Visit our Tooling repo for information regarding how to configure and run tests.
The plugin uses Codeception for acceptance testing. To configure and run tests:
- Install and configure Docker
- Configure environment variables by running:
export GRAVITYFORMS_KEY=[YOUR GRAVITY FORMS KEY HERE]
export GRAVITYVIEW_KEY=[YOUR GRAVITYVIEW KEY HERE]
export PLUGIN_DIR=[/path/to/gravityview]
- Finally,
cd
to the GravityView plugin directory and rundocker-compose -f tests/acceptance/docker/docker-compose.yml run codeception
See Codeception commands reference for a full list of available flags.
We are thankful to the following services and open source software that help enhance our plugin:
- BrowserStack - Automated browser testing
- Flexibility - Adds support for CSS flexbox to Internet Explorer 8 & 9
- Gamajo Template Loader - Makes it easy to load template files with user overrides
- jQuery Cookie plugin - Access and store cookie values with jQuery
- PHPEnkoder - Email address obfuscation