melisplatform / melis-platform-framework-laravel
Melis Platform Frameworks Laravel
Installs: 356
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 0
Open Issues: 0
Type:melisplatform-module
Requires
- php: ^8.1|^8.3
- fideloper/proxy: ^4.4
- fruitcake/laravel-cors: ^3.0
- guzzlehttp/guzzle: ^7.8
- laravel/framework: ^9.52
- laravel/sail: ^1.27
- laravel/sanctum: ^3.3
- laravel/tinker: ^2.9
- laravelcollective/html: ^6.4
- melisplatform/melis-platform-frameworks: ^5.2
- nunomaduro/collision: ^7.10
- nwidart/laravel-modules: ^9.0
- spatie/laravel-ignition: ^1.0
Requires (Dev)
- fakerphp/faker: ^1.23
- filp/whoops: ^2.15
- mockery/mockery: ^1.6
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-11-18 09:47:51 UTC
README
This laravel service provides a connection to the Laminas application enabling access to the Service and Event Manager and Database connection configuration of the application.
Prerequisites
This module requires:
- melisplatform/melis-core:^3.1
- laravel/framework:^6.0
It will automatically be done when using composer.
Installing
composer require melisplatform/melis-platform-framework-laravel
Service Providers
Activating the Service provider by just adding to the config/app.php
file in the
Service Providers section.
MelisPlatformFrameworkLaravel\LaminasServiceProvider::class
Usage
Below is an example of direct calling a Model in laravel controller
$languagesTbl = app('LaminasServiceManager')->get('MelisCoreTableLang');
$listArray = $languagesTbl->fetchAll();
Where to find Melis Services
- Melis Services are found inside each Melis Modules and these melis modules can be found by following the path below.
/_docroot_/vendor/melisplatform/
- Inside each Melis Module you can find module.config.php in the config folder.
The module.config.php contains an array keys called aliases and factories under service_manager.
'service_manager' => array(
'invokables' => array(
),
'aliases' => array(
'translator' => 'MvcTranslator',
'MelisCmsNewsTable' => 'MelisCmsNews\Model\Tables\MelisCmsNewsTable',
'MelisCmsNewsTextsTable' => 'MelisCmsNews\Model\Tables\MelisCmsNewsTextsTable',
),
'factories' => array(
//services
'MelisCmsNewsService' => 'MelisCmsNews\Service\Factory\MelisCmsNewsServiceFactory',
//tables
'MelisCmsNews\Model\Tables\MelisCmsNewsTable' => 'MelisCmsNews\Model\Tables\Factory\MelisCmsNewsTableFactory',
'MelisCmsNews\Model\Tables\MelisCmsNewsTextsTable' => 'MelisCmsNews\Model\Tables\Factory\MelisCmsNewsTextsTableFactory',
),
),
- The array keys inside aliases or factories can be called in Laravel framework using the MelisServiceProvider.
$melisNewsSvc = $app['melis.services']->getService("MelisCmsNewsService");
Authors
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
License
This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details