This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

FriendsOfBabba/Core plugin for CakePHP

dev-main 2021-08-06 16:17 UTC

This package is auto-updated.

Last update: 2021-10-06 16:41:54 UTC


README

FriendsOfBabba/Core it's a nice name choosen for this library because thanks to FriendsOfCake we are able to built and release awesome applications. After years of developing we decide to publish our package.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require friendsofbabba/core
bin/cake plugin load FriendsOfBabba/Core

Add it to your src/Application.php file:

public function boostrap() : void
{
    // Stuff
    // Load more plugin here
    $this->addPlugin("FriendsOfBabba/Core", ['routes' => true]);
}

FriendsOfBabba/Core uses RESTFul API to provide access to the whole set of functionalities exposed in to the library. We can disable CsrfTokenProtectionMiddleware in src/Application.php because is not necessary:

        // ->add(new CsrfProtectionMiddleware([
        //     'httponly' => true,
        // ]));

Generate your private and public key necessary to work with JWT authentication:

openssl genrsa -out config/jwt.key 1024
openssl rsa -in config/jwt.key -outform PEM -pubout -out config/jwt.pem

API

Hooks

You can customize specific application behaviors using hooks.

Language

TODO: Explain how language service work.

Permission

TODO: Explain how permission work.

Data Migration

TODO: Explain how data migration work.