Download the PHP package tio27/avilio without Composer
On this page you can find all versions of the php package tio27/avilio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package avilio
Avilio
Avilio is a helper class designed to simplify the workload of WordPress developers. Born out of frustration with the repetitive process of copying and pasting code from previous projects at the start of every new WordPress development, this plugin aims to streamline the workflow, providing an easier and more efficient setup.
Initially, Avilio was created to meet the specific needs of its author, who frequently relies on the Advanced Custom Fields (ACF Pro) plugin in WordPress projects. As such, Avilio integrates seamlessly with ACF Pro, offering support for developers who utilize it as a core component of their projects.
While the primary goal of Avilio is to serve its author's workflow, it may also prove useful for other developers encountering similar challenges in their own projects. If you find yourself frequently duplicating code from one WordPress project to the next, Avilio could help alleviate that burden.
Installation
To install the plugin via Composer, run the following command:
Make sure your WordPress environment is set up to handle Composer-based plugins.
Usage
After installing Avilio, you can integrate it into your workflow. Since Avilio is built with ACF Pro in mind, it is recommended that ACF Pro be installed and activated in your WordPress setup to take full advantage of the helper class.
Avilio is designed to simplify and streamline common WordPress development tasks. Below are a few examples of how Avilio can be used to improve your workflow:
1. Simplifying functions.php
for Cleaner, OOP-based Structure
Instead of cluttering your functions.php
with long procedural code, Avilio enables you to structure your WordPress project using Object-Oriented Programming (OOP) principles. This leads to more maintainable and organized code. For example:
Before Avilio:
With Avilio:
2. Simplifying ACF Pro Templating
Working with ACF Pro fields often involves repetitive template code. Avilio helps to simplify ACF templating by abstracting away much of the boilerplate code, allowing you to focus on the logic of your template.
Before Avilio:
With Avilio:
3. Modular and Reusable Page Templates
Avilio promotes a modular approach to building WordPress page templates, encouraging the separation of template logic into smaller, reusable components. This helps maintain a cleaner and more maintainable structure for your page templates.
Before Avilio:
With Avilio:
Basic Setup
Install the plugin via Composer. Add the necessary configurations to your theme or plugin, following Avilio's available methods. Start leveraging the predefined functions and helpers to avoid repetitive tasks and boilerplate code. Requirements WordPress 5.0 or higher PHP 7.4 or higher ACF Pro plugin (optional but recommended) Contributing If you encounter any issues or would like to contribute improvements, feel free to open a pull request or issue on the GitHub repository. We welcome feedback and contributions from the community.
License
This plugin is open-sourced software licensed under the MIT license.