2017 © Pedro Peláez
 

library scripts

HoneyComb scripts

image

honey-comb/scripts

HoneyComb scripts

  • Tuesday, July 24, 2018
  • by jdmitrijev
  • Repository
  • 2 Watchers
  • 0 Stars
  • 452 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 44 % Grown

The README.md

honeycomb-scripts

https://github.com/honey-comb/scripts, (*1)

Description

HoneyComb CMS Automated code generation, (*2)

Attention

This is part scripts package for HoneyComb CMS package., (*3)

If you want to use laravel version 5.5.* use scripts package version 0.1.*, (*4)

Requirement

  • php: ^7.1
  • laravel: ^5.6
  • composer, (*5)

    Installation

Begin by installing this package through Composer., (*6)

    {
        "require": {
            "honey-comb/scripts": "2.*"
        }
    }

or, (*7)

    composer require honey-comb/scripts

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., (*8)

  • create _hc_scripts_configuration folder in project root directory
  • create config.json file i.e. w_rewards.json
  • run php artisan hc-make:service it will generate files from given configuration (looks for .json files). It generates 1 file per run and add .done extension after success.

w_rewads.json example:, (*9)

{
  "directory": "",
  "url": "rewards",
  "icon": "scroll",
  "serviceName": "WReward",
  "multiLanguage": 1,
  "forms": ["new", "edit"],
  "optionLabelList" : ["label"],
  "models": [
    {
      "tableName": "w_reward",
      "modelName": "WReward",
      "default": 1,
      "repository": 1,
      "use": ["translations"]
    }
  ],
  "actions": {
    "admin": [
      "list",
      "create",
      "update",
      "delete",
      "delete_force",
      "restore"
    ],
    "front": [
    ],
    "api": [
    ]
  }
}
  • 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 modelName read below)
  • multiLanguage - if service has multilanguage fields than write 1 otherwise 0. If multilanguage is 1 than w_reward and w_reward_translation table is required otherwise only w_reward table.
  • 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), (*10)

    • 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 multiLanguage is set to 1 then write translations option otherwise leave empty array "use":[] you can add multiple models if you want. But they cannot be default:1.
  • actions - is related to admin ACL. Here listed all needed actions. You can add additional actions if you need., (*11)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis
by Darius Šlubelis

laravel cms honey honeycomb

24/07 2018

0.2.3

0.2.3.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms honey honeycomb

17/07 2018

0.2.2

0.2.2.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms honey honeycomb

29/05 2018

0.2.1

0.2.1.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms honey honeycomb

20/04 2018

dev-refactoring56

dev-refactoring56 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms honey honeycomb

20/04 2018

0.2.0

0.2.0.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms honey honeycomb

13/02 2018

0.1.6

0.1.6.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

13/02 2018

5.5.x-dev

5.5.9999999.9999999-dev https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

11/02 2018

0.1.5

0.1.5.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

02/02 2018

0.1.4

0.1.4.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

30/01 2018

0.1.3

0.1.3.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

29/01 2018

0.1.2

0.1.2.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

29/01 2018

0.1.1

0.1.1.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb

24/01 2018

0.1.0

0.1.0.0 https://github.com/honey-comb/scripts/

HoneyComb scripts

  Sources   Download

MIT

The Requires

 

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Vytautas Rimeikis

laravel cms honey honeycomb