plantek/loader

There is no license information available for the latest version (1.0.0) of this package.

Composer Package for WordPress Plugin Development easily integrates this library in order to restrict plugin users that have not got a valid license.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/plantek/loader

1.0.0 2025-08-15 17:44 UTC

This package is not auto-updated.

Last update: 2025-10-04 19:45:41 UTC


README

Composer Library for creating WordPress Plugin Loaders, Enables Plugin Updates, restricting plugin to users that have not got a valid license and Dependency Checking.


🗒️ USAGE

Basic Plugin Loader:

require_once 'vendor/autoload.php';

class ExampleLoader extends PlantekPluginLoader
{
    /**
     * Return the Plugin Name for PlantekPluginLoader to Handle
     *
     * @return string
     */
    public function pluginName()
    {
        return 'ExamplePlugin';
    }

    /**
     * Return a list of dependencies for the Plugin loader
     * For Example, Advanced Custom Fields
     *
     * @return array
     */
    public function getDependencies()
    {
        return [];
    }

    /**
     * Get Licenser Settings
     *
     * @return array
     */
    public function getLicenserOptions()
    {
        return [
            "enabled" => false,
        ];
    }

    /**
     * Get Updater Settings
     *
     * @return array
     */
    public function getUpdaterOptions()
    {
        return [
            'name' => 'ExamplePlugin',
            'repository' => 'https://gitlab.com/MarleyPlant/ExamplePlugin',
            'branch' => 'master',
            'pluginFile' => __FILE__
        ];
    }

    /**
     * Initialize the plugins core
     *
     * @return void
     */
    public function init()
    {
        include_once 'plugin.php';
    }
}

add_action('plugins_loaded', function () {
    $loader = new PlantekElementorLibraryLoader();
});



💻 TECHNOLOGIES

Markdown Composer


📎 LICENSE

A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

This Repository Is Licensed Under Apache License 2.0


🗃️ Related Projects