Download the PHP package kuroragi/general-helper without Composer

On this page you can find all versions of the php package kuroragi/general-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package general-helper

# Kuroragi General Helper

Latest Version on Packagist PHP Version Require License

A Laravel utility package for ERP and general applications provides a Blameable trait, activity logging, Blueprint/Eloquent macros, authorization exception handling, and common helper functions for Bahasa Indonesia formatting.

Compatible with Laravel 10, 11, and 12.


Requirements

Optional Dependencies


Installation

The service provider is auto-discovered via Laravel package auto-discovery.

Publish Config


Configuration

config_version compare your local value with the package source after upgrading. If lower, re-publish to get new config keys.


Features

1. Blameable Trait

Auto-fills created_by, updated_by, deleted_by on Eloquent model events.

Migration:

Model:

Relations are available automatically:


2. Blueprint Migration Macros


3. Eloquent Query Macros


4. Activity Logger

Daily log files stored at storage/logs/activity/activity-YYYY-MM-DD.log. Each line is a JSON object.


5. Activity Log Reader

Also reads from .zip archives generated by the roll command.


6. Weekly Log Rotation

Logs are auto-compressed to a weekly .zip archive every Monday at 01:00 (configurable).

Ensure the Laravel Scheduler is running:


7. Authorization Exception Handler

Handles AuthorizationException (403) with configurable redirect and flash message instead of a raw error page.

Blade:

redirect_type Behaviour
route redirect()->route($redirect_to)
url redirect($redirect_to)
back redirect()->back()
home redirect('/')

Returns a JSON 403 response for AJAX/Livewire requests when json_response is true.


8. General Helper Functions


Testing


Package Structure


Changelog

See CHANGELOG.md for full history.


License

The MIT License (MIT).


All versions of general-helper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-permission Version ^5.5|^6.0|^7.0|^8.0
barryvdh/laravel-dompdf Version ^2.0|^3.0|^4.0
livewire/livewire Version ^3.0|^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kuroragi/general-helper contains the following files

Loading the files please wait ...