Download the PHP package honey-comb/scripts without Composer
On this page you can find all versions of the php package honey-comb/scripts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download honey-comb/scripts
More information about honey-comb/scripts
Files in honey-comb/scripts
Package scripts
Short Description HoneyComb scripts
License MIT
Homepage https://github.com/honey-comb/scripts/
Informations about the package scripts
honeycomb-scripts
https://github.com/honey-comb/scripts
Description
HoneyComb CMS Automated code generation
Attention
This is part scripts package for HoneyComb CMS package.
If you want to use laravel version 5.5. [use scripts package version 0.1.](https://github.com/honey-comb/resources/tree/5.5 "Resources package version 0.1.*")
Requirement
- php:
^7.1 - laravel:
^5.6 -
composer
Installation
Begin by installing this package through Composer.
or
Usage
Creating a honeycomb service
Honeycomb Service in honeycomb terms means Routes, Models, Controllers, Services, Repositories, Forms, Requests as one which can be access via url in admin panel.
- create _hc_scripts_configuration folder in project root directory
- create config.json file i.e. w_rewards.json
- run
php artisan hc-make:serviceit will generate files from given configuration (looks for .json files). It generates 1 file per run and add.doneextension after success.
w_rewads.json example:
- directory - if you are developing package your can write honey-comb/core and all files will be generated in this dir. Using for project leave empty
"" - url - admin access url i.e.
project.local/admin/rewards - icon - icon for admin meniu element
- serviceName - used to generate all file prefixes. (must be the same as main
modelNameread below) - multiLanguage - if service has multilanguage fields than write 1 otherwise 0. If multilanguage is 1 than
w_rewardandw_reward_translationtable is required otherwise onlyw_rewardtable. - forms - dont change
- optionLabelList - dont change
-
models - list of models which will be generated. There always must be a model to generate a service. (database table must exist)
- default - 1 means it will be used for controller and resositry to auto generate default model
- modelName better must be the same as
serviceName - respository - dont change
- use - if
multiLanguageis set to 1 then writetranslationsoption otherwise leave empty array"use":[]you can add multiple models if you want. But they cannot bedefault:1.
- actions - is related to admin
ACL. Here listed all needed actions. You can add additional actions if you need.