Download the PHP package benaaacademy/platform without Composer
On this page you can find all versions of the php package benaaacademy/platform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download benaaacademy/platform
More information about benaaacademy/platform
Files in benaaacademy/platform
Informations about the package platform
BenaaacademyPlatform
A modular multilingual CMS built with Laravel 5 introduce a full-featured modular multilingual CMS built on top of the Laravel framework.
Minimum System Requirements:
To be able to run Benaaacademycms you have to meet the following requirements:
- PHP 8.1 or higher
- PDO PHP Extension
- Mcrypt PHP Extension
- GD PHP Library
- MySql 5.5
Installing BenaaacademyCms:
It's very easy, you can choose one of three installation methods:
First, you must have a laravel 5 project you can install Benaaacademy/platform package
composer require Benaaacademy/platform
Then add service provider in app config
Benaaacademy\Platform\ServiceProvider::class
Then Run this artisan command to install
php artisan Benaaacademy:install
Enjoy :)
You can now login /backend with your username and password asked during the install command. After you've logged in you'll be able to access the administration panel on the /backend URI.
Also you can change admin url prefix from admin config:
Custom plugin model validation:
Routes file:
"
class="form-control input-lg" />
</div>
Almost done, just save it using user.saving
action.
<?php
Action::listen("user.saving", function ($user) {
// Adding gender field to model attributes before saving it.
$user->gender = Request::get("gender");
// some validation rules if wanted
$user->rules(
["gender" => "required"],
["gender.required" => "Gender field is required"], // optional
["gender" => "Gender"] // optional
);
});
Actions API:
<?php
// Authentication
Action::listen("auth.login", function($user){});
Action::listen("auth.logout", function($user){});
Action::listen("auth.forget", function($user){});
Action::listen("auth.reset", function($user){});
// Users
Action::listen("user.saving", function($user){});
Action::listen("user.saved", function($user){});
Action::listen("user.deleting", function($user){});
Action::listen("user.deleted", function($user){});
Action::listen("user.form.featured", function($user){});
Action::listen("user.form.sidebar", function($user){});
// Roles
Action::listen("role.saving", function($role){});
Action::listen("role.saving", function($role){});
Action::listen("role.deleting", function($role){});
Action::listen("role.deleted", function($role){});
Action::listen("role.form.featured", function($role){});
Action::listen("role.form.sidebar", function($role){});
// Pages
Action::listen("page.saving", function($page){});
Action::listen("page.saving", function($page){});
Action::listen("page.deleting", function($page){});
Action::listen("page.deleted", function($page){});
Action::listen("page.form.featured", function($page){});
Action::listen("page.form.sidebar", function($page){});
// Posts
Action::listen("post.saving", function($post){});
Action::listen("post.saving", function($post){});
Action::listen("post.deleting", function($post){});
Action::listen("post.deleted", function($post){});
Action::listen("post.form.featured", function($post){});
Action::listen("post.form.sidebar", function($post){});
// Tags
Action::listen("tag.saving", function($tag){});
Action::listen("tag.saving", function($tag){});
Action::listen("tag.deleting", function($tag){});
Action::listen("tag.deleted", function($tag){});
Action::listen("tag.form.featured", function($tag){});
Action::listen("tag.form.sidebar", function($tag){});
// Categories
Action::listen("category.saving", function($category){});
Action::listen("category.saving", function($category){});
Action::listen("category.deleting", function($category){});
Action::listen("category.deleted", function($category){});
Action::listen("category.form.featured", function($category){});
Action::listen("category.form.sidebar", function($category){});
// Dashboard
Action::listen("dashboard.featured", function(){});
Action::listen("dashboard.right", function(){});
Action::listen("dashboard.middle", function(){});
Action::listen("dashboard.left", function(){});
Creating items in sidebar menu:
<?php
Navigation::menu("sidebar", function ($menu) {
$menu->item('products', trans("products::products.name"), URL::to(ADMIN . '/products'))
->icon("fa-product-hunt") // optional
->order(1); // optional
});
- Method
item
accepts slug, title and url. - As the above example, you can make a sub item from by making child item slug to
products.{sub_item}
- Slug parameter must be unique.
Creating schedule tasks:
<?php
Schedule::run(function($schedule){
$schedule->call(function(){
// Executing some db queries
sleep(7);
})->cron('* * * * *')->name("task_name")->withoutOverlapping();
});
Adding links to sitemap:
<?php
Sitemap::set("sitemap", function($sitemap){
$sitemap->url(url("/"))
->date(time()) // optional
->priority("0.9") // optional
->freq("hourly") // optional
});
This url will be appended in main sitemap sitemap.xml
in public/sitemaps
directory.
Commands:
There are some commands to help you to giva a fast work with plugins
plugin:list List all plugins
plugin:make make a plugin (--plain & --resources)
plugin:migration Create a plugin migration file
plugin:migrate Migrate plugin migration files
plugin:migrate:up Make plugin migrations up
plugin:migrate:down Make plugin migrations down
plugin:publish Publishing plugin public and config files
plugin:install Install a plugin
plugin:uninstall Uninstall a plugin
plugin:update reinstall a plugin
And more..
Dont forget to send a feedback..
All versions of platform with dependencies
ext-gd Version *
ext-curl Version *
ext-bcmath Version *
laravel/framework Version *
barryvdh/laravel-debugbar Version ^3.9
doctrine/dbal Version ^3.8
laravel/helpers Version ^1.7
benaaacademy/auth Version ^1.0.10
benaaacademy/roles Version ^1.0.10
benaaacademy/users Version ^1.0.10
benaaacademy/options Version ^1.0.10
benaaacademy/media Version ^1.0.10
benaaacademy/dashboard Version ^1.0.10