Backend Development

MyBB Cochlea Library

Submitted by Venipa, , Thread ID: 141415

Thread Closed
24-08-2019, 11:43 PM
This post was last modified: 31-08-2019, 02:24 AM by Venipa
#1
Simple Library for MyBB, uses Illuminate Projects like their Database Manager (includes Schema Query & DB Queries/Eloquent Models)
Github: https://github.com/Venipa/Cochlea-Library

Code:
/**
* Author: Venipa <[email protected]>
* Type: MyBB Extension Plugin Library
* Description: This is a Plugin Library used by other Plugins, note: this plugin does not need to be registered
* Disclaimer: This Plugin can be used by everyone, you just need to add me to your credit page or just mention the use of this Script
* Usage:
* - `composer install` - installs dependencies
* - `require "chochlea-library/core.php"` - make sure to adjust the path to this file
*
* License: Gnu GPL3 <https://www.gnu.org/licenses/gpl-3.0.de.html>
* Website: https://venipa.net
*/

its my first lib for mybb which i made while i was doing my first plugin


Some examples:
Code:
// user must be authed by mybb
    $this->setAuthXHRHook('actionName', function(...$args) {
      // return data or just void it
    });
    $this->setXHRHook('actionName', function(...$args) {
      // return data or just void it
    });
    $this->addHook('global_start', function() {
      // do something?
    });
/au4to0][Image: ad0png.png]
[Image: view?username=Venipa&style=small]

RE: MyBB Cochlea Library

OP
This post was last modified: 31-08-2019, 02:14 AM by Venipa
#2
Changelogs:

Aug 29, 2019
Code:
added jsonbody reading
using app container, big refactor
Aug 28, 2019
Code:
using psr-0 autoload for classes
loading db config via mybb context
? new pluginHook system, no more annoying stuff

Aug 23, 2019
Code:
added namespaces
Initial Commit
/au4to0][Image: ad0png.png]
[Image: view?username=Venipa&style=small]

RE: MyBB Cochlea Library

#3
So many things I dont have any idea of and this is one of them!!!!!!!!!!!!!!!!

RE: MyBB Cochlea Library

#4
your method it is very original to share things thank you very much

RE: MyBB Cochlea Library

#5
30-08-2019, 09:10 PM
Noodle666 Wrote:
So many things I dont have any idea of and this is one of them!!!!!!!!!!!!!!!!

Glad you admit it. That's why previously i mentioned to read rules and post descriptions my friend. Be wise.
I am Jonor. I am here for the Honour to be a big Donor.

Users browsing this thread: 5 Guest(s)