Coder Social home page Coder Social logo

stfkolev / chaospelt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34 KB

Modular, robust wordpress plugin development foundation - freeing you to create without sweating the small things!

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%
php framework wordpress foundation wordpress-plugin-development wordpress-plugin

chaospelt's Introduction

Chaospelt 0.1

Latest Stable Version Scrutinizer Code Quality Build Status License Code Coverage StyleCI

Purpose

This a "foundation" package. Its purpose is to help people develop Wordpress plugins quicker and easier in a more modern way. It provides some features that provide cleaner code structuring and overall quality.

This package can prevent some headaches, but cannot replace bad code habits, you'll still need a real .

Features

  • Easier to use hooks declarations
  • Code separation into modules
  • PSR-4 Autoloading

Installation

Compatible with

  • PHP 7.4 and above
  • Wordpress 5.4 and above

Installing

Create an empty composer project and require the Chaospelt package using Composer:

composer require stfkolev/chaospelt

Then, create a file with the main plugin class and extend the Chaospelt\Kernel\Plugin class:

<?php

namespace Lab;

use Chaospelt\Kernel\Plugin;

class LabPlugin extends Plugin {
    public function __construct() {
        parent::__construct(PLUGIN_FILE);
    }
}

Note: Be sure to follow the Wordpress Development Guide and pass the plugin file's path into the parent constructor. It is important, as it uses the path for the auto-registration of the hooks. Note 2: You can create your folder structure however you want. This is just a sample code onto how to use the foundation.

TODO

  • Database abstraction
  • Validator
  • Requests Handler
  • Routing
  • Tests, tests, tests.

License

Chaospelt is licensed under the BSD 3-Clause License - see the LICENSE file for details

Contributing

Pull requests and issues are more than welcome.

chaospelt's People

Contributors

stfkolev avatar stylecibot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.