siensis/cicmdtools

CICMDTools ara a Codeigniter command tool collection to simplify CI4 develope task

dev-main 2025-05-16 15:55 UTC

This package is auto-updated.

Last update: 2025-06-16 16:16:21 UTC


README

composer require siensis/cicmdtools @dev

CI4 Commands

  • crypt: Command to crypt a text with CI4 encryption key configured (php spark key:generate)
  • decrypt: Command to decrypt a text with CI4 encryption key configured
  • zip: Zip all project content into a zip. Before it clears logs
  • db:reboot: Drop or Empty database and calls migrations to rebuild database project
  • db:backup: Exports database as a mysql dump file
  • generate:model: Command to generate a model with validation rules (from Vulcan tools)

Helpers

  • setting: hash_setting, crypt_setting to store or to get a configuration attribute from Codeigniter4/Settings package
  • text: Added startsWith, endsWith, obscureMiddle, cryptb64, decryptb64,hmacb64
  • generateStringID: Generate an string ID based on time uniqueid function. This helper permits: prefix, suffix, split characters with '-' and more_entropy. By default prefix='', suffix='', split=0 (disabled), more_entropy=false