gp247 / core
Core laravel admin for all systems (ecommerce, cms, pmo...)
Installs: 581
Dependents: 5
Suggesters: 0
Security: 1
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gp247/core
Requires
- php: ^8.2
- barryvdh/laravel-dompdf: ^v3.1
- intervention/image-laravel: ^1.5
- jenssegers/agent: ^2.6
- laravel/framework: ^12.0
- laravel/helpers: ^1.7
- laravel/legacy-factories: ^1.4
- laravel/sanctum: ^4.0
- laravel/tinker: ^2.10.1
- laravel/ui: ^4.6
- league/flysystem-aws-s3-v3: ^3.29
- phpoffice/phpspreadsheet: ^2.0
- spatie/laravel-json-api-paginate: ^1.16
- spatie/laravel-pjax: ^2.4
- unisharp/laravel-filemanager: ^2.10
- dev-master
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.26
- 1.1.25
- 1.1.24
- 1.1.23
- 1.1.22
- 1.1.21
- 1.1.20
- 1.1.19
- 1.1.18
- 1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- 1.0-beta
This package is auto-updated.
Last update: 2025-10-22 22:47:21 UTC
README
Core Laravel admin for all systems (ecommerce, cms, pmo...)
composer require gp247/core
Installation and documentation | Facebook Official
About GP247
GP247 is a compact source code built with Laravel, helping users quickly build a powerful admin website. Whether your system is simple or complex, GP247 will help you operate and scale it easily.
What can GP247 do?
- Provides a powerful and flexible role management and user group solution.
- Offers a synchronous authentication API, enhancing API security with additional layers.
- Build and manage Plugins/Templates that work in the system
- Comprehensive access log monitoring system.
- Continuously updates security vulnerabilities.
- Supports multiple languages, easy management.
- GP247 is FREE
And more:
- GP247 builds a large, open ecosystem (plugin, template), helping users quickly build CMS, PMO, eCommerce, etc., according to your needs.
Laravel core:
GP247 1.x
Core laravel framework 12.x
Website structure using GP247
Website-folder/
|
├── app
│ └── GP247
│ ├── Core(+) //Customize controller of Core
│ ├── Helpers(+) //Auto load Helpers/*.php
│ ├── Plugins(+) //Use `php artisan gp247:make-plugin --name=NameOfPlugin`
//(IF you have gp247/front installed)//
│ ├── Front(+) //Customize controller of Front
//(IF you have gp247/shop installed)//
│ ├── Shop(+) //Customize controller of Shop
│ └── Templates(+) /Use `php artisan gp247:make-template --name=NameOfTempate`
├── public
│ └── GP247
│ ├── Core(+)
│ ├── Plugins(+)
//(IF you have gp247/front installed)//
│ └── Templates(+)
├── resources
│ └── views/vendor
│ |── gp247-core(+) //Customize view core
│ └── gp247-front(+) //(IF you have gp247/front installed)//
├── vendor
│ ├── gp247/core
│ └── gp247/front
├── .env
│ └── GP247_ACTIVE=1 //ON|OFF gp247
└──...
Quick Installation Guide
-
Step 1: Prepare the Laravel source
Refer to the command:
composer create-project laravel/laravel website-folder -
Step 2: Install the gp247/core package
Move to Laravel directory (in this example is
website-folder), and run the command:composer require gp247/core -
Step 3: Check the configuration in the .env file
Ensure that the database configuration and APP_KEY information in the .env file are complete.
If the APP_KEY is not set, use the following command to generate it:
php artisan key:generate -
Step 4: Configure database
Default, GP247 uses mysql. The configuration will be saved in the .env file as follows:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=gp247
DB_USERNAME=root
DB_PASSWORD=
If you want to use sqlite for quick testing, please change the connection in the .env file to sqlite, and comment out the DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD lines.
DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=gp247
#DB_USERNAME=root
#DB_PASSWORD=
-
Step 5: Initialize gp247
Run the command:
php artisan gp247:core-install -
Step 6: Add error handling
To add custom error handling to your application, open the
bootstrap/app.phpfile and add the following code to thewithExceptionsfunction:->withExceptions(function (Exceptions $exceptions) { $exceptions->report(function (\Throwable $e) { if (function_exists('gp247_handle_exception')) { gp247_handle_exception($e); } }); });
This code will help you handle exceptions through the
gp247_handle_exceptionfunction if it exists.
Useful information:
To view GP247 version
php artisan gp247:core-info
Update gp247
Update the package using the command:
composer update gp247/core
Then, run the command:
php artisan gp247:core-update
To create a plugin:
php artisan gp247:make-plugin --name=PluginName
To create a zip file plugin
php artisan gp247:make-plugin --name=PluginName --download=1
To create a template (IF you have gp247/front installed):
php artisan gp247:make-template --name=TemplateName
To create a zip file template:
php artisan gp247:make-template --name=TemplateName --download=1
Customize
Customize lfm configuration for upload
php artisan vendor:publish --tag=config-lfm
Customize core admin view
php artisan vendor:publish --tag=gp247:view-core
Overwrite gp247_ helper functions*
Step 1: Add the list of functions you want to override to
config/gp247_functions_except.php
Step 2: Create new php files containing the new functions in the
app/GP247/Helpersdirectory, for exampleapp/GP247/Helpers/myfunction.php
Overwrite gp247 controller files
Step 1: Copy the controller files you want to override from vendor/gp247/core/src/Core/Controllers -> app/GP247/Core/Controllers
Step 2: Change
namespace GP247\Core\Controllerstonamespace App\GP247\Core\Controllers
Overwrite gp247 API controller files
Step 1: Copy the controller files you want to override from vendor/gp247/core/src/Api/Controllers -> app/GP247/Core/Api/Controllers
Step 2: Change
namespace GP247\Core\Api\Controllerstonamespace App\GP247\Core\Api\Controllers
Add route
Use prefix and middleware constants GP247_ADMIN_PREFIX, GP247_ADMIN_MIDDLEWARE in route declaration.
References: https://github.com/gp247net/core/blob/master/src/routes.php
Environment variables in .env file
Quickly disable GP247 and plugins
GP247_ACTIVE=1// To disable, set value 0
Disable APIs
GP247_API_MODE=1// To disable, set value 0
Data table prefixes
GP247_DB_PREFIX=gp247_//Cannot change after install gp247
Path prefix to admin
GP247_ADMIN_PREFIX=gp247_admin