Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://gitlab.com/MarleyPlant/plantekloader
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.
https://gitlab.com/MarleyPlant/plantekloader
composer csv framework wordpress
Last synced: 3 months ago
JSON representation
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.
- Host: gitlab.com
- URL: https://gitlab.com/MarleyPlant/plantekloader
- Owner: MarleyPlant
- License: apache-2.0
- Created: 2022-06-07T09:46:39.478Z (over 2 years ago)
- Default Branch: main
- Last Synced: 2024-04-09T08:14:26.243Z (10 months ago)
- Topics: composer, csv, framework, wordpress
- Stars: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🔌 Plantek Loader 🔌
![]()
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.
---
## 💾 **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:
```php
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**
![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)
![PHP](https://img.shields.io/badge/php-%23777BB4.svg?style=for-the-badge&logo=php&logoColor=white)
---
## 📎 **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 athttp://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**
[
](https://gitlab.com/MarleyPlant)
---
## 📁 **Related Projects**
- [License Manager For Woocommerce](https://github.com/wpexpertsio/license-manager-for-woocommerce)
- [otakupahp/sdk-license-manager-for-woocommerce](https://github.com/otakupahp/sdk-license-manager-for-woocommerce)
- [yahnis-elsts/plugin-update-checker"](https://marleypant.com)
- [htmlburger/carbon-fields](https://docs.carbonfields.net/)