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.

1.0.0 2022-06-10 08:09 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:53:42 UTC


README

Logo-Dark-1.png
<p>Composer Library for creating WordPress Plugin Loaders, Enables Plugin Updates, Licensing and Dependency Checking and may already be powering one of the plugins you use.</p>

💾 ABOUT

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();
});

<br/>

💻 TECHNOLOGIES

HTML5 PHP


📎 LICENSE

Copyright 2023 Marley Plant

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


📌 LINKS

Gitlab


📁 Related Projects