awebdesign/opencore
Fork: 18 Star: 45 (更新于 2024-10-28 07:15:43)
license: MIT
Language: PHP .
OpenCore - Laravel for OpenCart
最后发布版本: 1.2.4 ( 2020-02-05 22:03:39)
This project is abandoned!
We suggest you to use Nexus for OpenCart.
Nexus can be found here GitHub Nexus and is a module like package which can be added in OpenCart and will let you call methods in the same manner as Laravel. For the moment it doesn't have the same complexity of OpenCore but with a little help from you I'm sure it will be much better than it. The best thing is that the footprint is much smaller and the speed is much faster!
OpenCore
An application built on Laravel which can run as a subsystem for OpenCart system.
OpenCore is an application made on Laravel for OpenCart which let's you develop new features or overwrite the existing ones in Laravel instead of the old OpenCart framework. The application comes with built-in features which help the developers to create new modules or new functionalities for OpenCart ecommerce platform. Also, stand-alone features (independent of OpenCart) can be easily added.
OpenCore - Laravel for OpenCart
Official website OpenCore. project made with the help of Aweb Design
WORK IN PROGRESS
Please note that this package is still under active development. We encourage everyone to try it, give feedback and if possible, contribute.
Features
- All Laravel's 5.8 built-in helpers / features
- Error logs by ARCANEDEV
- Cronjob system management by Codestudiohq
- WYSIWYG Email HTML/Markdown editor
- Auto update feature
- Module management by nWidart Modules
- many more to come...
System Requirements
- PHP >= 7.1.3
- BCMath PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
check Laravel requirements because they may differ depending on the used version
Other Requirements
- OpenCart 2.x / 3.x installed
- root .htaccess.txt renamed to .htaccess
- change admin settings from admin / setting / server / Use SEO URLs: Yes
Installation
- Install Git and Composer on your system
- go to your OpenCart root folder, open a console and run the following commands step by step
-
git clone https://github.com/opencorero/opencore.git core
-
cd core/
-
composer update
-
php artisan key:generate
-
php artisan migrate
-
php artisan opencore:register-routes
- copy OpenCart extension files from core/opencart-module/(2.x|3.x)/upload to you OpenCart root folder
- go to OpenCart admin panel / extensions / extensions / modules, find OpenCore module and install it
- click on the OpenCore icon from admin / left column / section "System Requirements" and make sure there's nothing marked with red
- Optional: in order to enable Developer & Example modules you need to access admin / user / user groups section and add permission for them
Enjoy!
Update
-
cd core/
-
git update
-
composer update
-
php artisan migrate
-
php artisan opencore:register-routes
- copy OpenCart extension files from core/opencart-module/(2.x|3.x)/upload to you OpenCart root folder
- Optional: go to OpenCart / extensions / modules, disable and then re-enable the OpenCore module
How does it works ?
Let's take this file from OpenCart system: /admin/controller/common/header.php
As you probably know, this file is commonly used for inserting the header part in all admin sections (there's one for catalog as well in catalog/controller/common/header.php
) and it is called in other controllers this way:
$data['header'] = $this->load->controller('common/header');
and if it does not have another slash after header then the default index() method will be loaded from header controller. So, if you would like to rewrite this section using Laravel, you can create a custom Controller and a GET route 'common/header' which will point to the newly created controller and that's it! You are now able to write whatever custom code you want for the header file.
Example:
$router->get('common/header', 'ExampleController@commonColumnLeftReplace')->name('common.header');
If you want to create a new functionality, the process is the same but instead of using an existing route you will need to create a unique one.
Example:
$router->get('example', 'ExampleController@index')->name('example');
So, everytime you call /admin/example
this controller will reply with the content.
Just remember that routes are split in two:
admin.php
and catalog.php
routes files which can be found in /core/app/routes/
or in any module e.g.: /core/modules/Example/routes/
Is it fast?!
Yes, it is! As long as your server has the minimum requirements for Laravel 5.8 to work, everything should be good. The module is very fast and has no delay of any kind. The integration of Laravel Framework through OpenCart doesn't affect at all the speed of any of them. That is happenning thanks to the multiple optimizations done in the code and to the MySQL shared connector which will help sharing the database active connection between OpenCart and Laravel/OpenCore.
Documentation
Documentation for OpenCore can be found on the Official website.
- right now it is under development but everything will be there soon
Security
If you discover any security related issues, please email author at support@opencore.ro instead of using the issue tracker.
License
MIT license. Please see the license file for more information.
TODO
- create a console command for faster instalation / update
- force paginator->appends to automatically add token/user_token param for admin requests only
- when enabling a module the permission must be added automatically for the user who made the action
- Example & Developer modules should be disabled by default
- display jobs & failed_jobs lists in developer module
- admin user permission checked on modify | POST / PUT / DELETE
- move occore user permission changes inside OpenCore project in a separate method
- remove getRegistry from Startup controller and let Framework handle it
- add ocmode(on refresh) multi line changes
- change header files comments
- add flash messages: https://github.com/laracasts/flash
- add menu builder: https://github.com/spatie/laravel-menu | https://github.com/harimayco/wmenu-builder | https://github.com/msurguy/laravel-shop-menu
- add activiy logs: https://github.com/spatie/laravel-activitylog
- add javascript validation: https://github.com/proengsoft/laravel-jsvalidation
- add persistent settings: https://github.com/edvinaskrucas/settings
- fix rotues shown on php artisan route:list
- add mail eclipse https://github.com/Qoraiche/laravel-mail-editor (maybe)
- add a MarketPlace for all OpenCore modules! IMPORTANT!
最近版本更新:(数据更新于 2024-10-21 17:39:12)
2020-02-05 22:03:39 1.2.4
2020-01-31 23:56:50 1.2.3
2020-01-26 21:30:59 1.2.2
2020-01-21 18:08:41 1.2.1
2020-01-20 16:54:39 1.2.0
2020-01-18 00:57:42 1.1.0
2020-01-18 00:49:36 1.0.0
主题(topics):
laravel, laravel-application, laravel-framework, laravel5, opencart, opencart-2x, opencart-3x, opencart-development, opencart-extension, opencart-framework, opencart-module, opencart-plugin, opencore
awebdesign/opencore同语言 PHP最近更新仓库
2024-11-01 18:37:36 schmittjoh/JMSSerializerBundle
2024-10-31 21:37:53 filamentphp/filament
2024-10-28 00:16:41 symfony/var-dumper
2024-10-28 00:11:41 symfony/symfony
2024-10-11 23:44:26 coollabsio/coolify
2024-10-11 03:27:29 odan/slim4-skeleton