Download the PHP package realtyna/wp-plugin-framework without Composer

On this page you can find all versions of the php package realtyna/wp-plugin-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-plugin-framework

Realtyna Base Plugin

WordPress Base Plugin Banner

Welcome to the Realtyna Base Plugin, a structured and scalable foundation for developing WordPress plugins. This framework is designed to simplify the process of plugin development by providing a set of tools and conventions, enabling developers to create robust and maintainable plugins.

Introduction

Hi, I'm Chandler, and I'm here working for Realtyna. I'm a Senior Backend/WordPress Developer. At Realtyna, we've developed numerous plugins, and this framework is the result of continuous improvement in our development process.

Previously, I created a WordPress framework called Realtyna MVC Core, which you can find the documentation for here. That structure served us well for almost a year. However, over time, I realized that we were relying heavily on third-party Composer packages that weren't essential. This prompted me to refactor the framework. The idea remains the same, but with what I believe is a much better execution this time.

I would love to hear your opinions and contributions to this project!

Features

Documentation

Comprehensive documentation is available for developers of all levels:

Installation

Creating the Base Plugin

To create a new WordPress plugin using the Realtyna Base Plugin framework, you can use the following Composer command:

Replace {PluginName} with the desired name for your plugin. This command will generate the base structure for your new plugin and automatically update the namespace, constant name, plugin name, and configuration settings based on the project name you provide.

Configuring Your Plugin

After running the create-project command, the script will automatically:

  1. Update Namespace: The namespace in all class files will be updated to match your project name.
  2. Update Constant Name: The constant name used throughout the project will reflect your plugin's name.
  3. Update Plugin Name: The plugin name used in various parts of the code and configuration will be set to the name you provided.
  4. Configure config.php: The config.php file will be updated to reflect your plugin’s name, slug, and text domain based on the project name.

Example Configuration

The config.php file located in the ./src/Config/config.php directory will automatically be configured, but you can still customize additional settings if needed. Here’s an example:

Overview of Main.php

The Main.php file is the heart of your plugin. It extends the StartUp class and handles the initialization of your plugin’s components, admin pages, logging, and database migrations.

Key Methods in Main.php:

Developing a Component

Components are modular pieces of your plugin that handle specific tasks. For example, you might have a component for custom post types, another for handling AJAX requests, and another for registering REST API endpoints.

Example: Creating a Component

Here is a basic example of how to create a component with all its features:

Key Methods in the Component:

By following this structure, you can build well-organized, maintainable, and scalable WordPress plugins using the Realtyna Base Plugin framework.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements


All versions of wp-plugin-framework with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package realtyna/wp-plugin-framework contains the following files

Loading the files please wait ....