Download the PHP package pixelcollective/netlify-deploy without Composer
On this page you can find all versions of the php package pixelcollective/netlify-deploy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package netlify-deploy
Netlify Deploy 🚗💨
Automatic Netlify builds on WordPress publish and update events.
Features
- Makes it super easy to keep a static frontend in sync with your post database
- Out of the box support for configuration with .env
- Full composer support
- Supports custom posttypes
- Supports custom publish hooks
- Free & open source
Requirements
- WordPress 5.2+
- PHP 7.2+
Install
Usage
Request a webhook URL from Netlify to use to trigger builds (you can find the "Build hooks" section on your site dashboard at /settings/deploys#build-hooks
).
Next, add the URL to your site .env variables and activate the plugin. Env variables are included in .env.example
and below, for your reference:
Filters
netlify_posttypes
By default the plugin makes a run on the provided Netlify webhook when the standard WordPress posttypes post
and page
undergo a change in publish
status.
If you would like to modify this you can do so by passing an array of desired posttypes to the netlify_posttypes
filter.
netlify_webhooks
You can modify your webhooks at runtime using the netlify_hooks
filter:
netlify_env_override
If you don't want to use env variables because you don't have a deployment strategy and enjoy living poorly you can hook into the netlify_env_override
filter and pass the target webhook directly at runtime:
netlify_transitions
Change the post status transitions which trigger a build. Usage with the default values is shown below:
Author
👤 Tiny Pixel Collective, LLC
- Twitter: @tinydevteam
- Github: @pixelcollective
- Web: tinypixel.dev
🤝 Contributing
Contributions, issues and feature requests are welcome!
🧠 ? Open a PR. Be sure to abide by our contribution guidelines.
😩 ? Open an issue.
Show your support
We need ⭐️s to live. Please.
📝 License
This project is MIT licensed.
Copyright © 2019 Tiny Pixel Collective, LLC.