Backend Development

MyBB Cochlea Library

Submitted by Venipa, , Thread ID: 141415

Thread Closed
Venipa
venipa.net
Level:
6
Reputation:
91
Posts:
525
Likes:
148
Credits:
6.18K
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?
    });
[Image: ad0png.png]
[Image: view?username=Venipa&style=small]

RE: MyBB Cochlea Library

Venipa
venipa.net
Level:
6
Reputation:
91
Posts:
525
Likes:
148
Credits:
6.18K
OP
30-08-2019, 09:04 PM
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
[Image: ad0png.png]
[Image: view?username=Venipa&style=small]

RE: MyBB Cochlea Library

Noodle666
Junior Member
Level:
0
Reputation:
0
Posts:
95
Likes:
6
Credits:
88
30-08-2019, 09:10 PM
#3
So many things I dont have any idea of and this is one of them!!!!!!!!!!!!!!!!

RE: MyBB Cochlea Library

XxPrincexX
Newbie
Level:
0
Reputation:
0
Posts:
18
Likes:
2
Credits:
2
21-10-2019, 04:32 AM
#4
your method it is very original to share things thank you very much

RE: MyBB Cochlea Library

Jonor
Fulltime Member
Level:
0
Reputation:
6
Posts:
1.19K
Likes:
54
Credits:
1.11K
29-01-2020, 12:44 PM
#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: 1 Guest(s)