Download the PHP package bakgul/kernel without Composer
On this page you can find all versions of the php package bakgul/kernel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bakgul/kernel
More information about bakgul/kernel
Files in bakgul/kernel
Package kernel
Short Description This is a helper package, and it isn't meant to be used independently. That being said, it contains some nice helper classes to deal with the file system, strings, arrays, naming conventions, etc. If you need such functionalities, you may find this package helpful. On the other hand, its real purpose is to collect some classes and methods that are being used by multiple packages that are part of Packagified Laravel.
License MIT
Informations about the package kernel
Kernel
This is a helper package, and it isn't meant to be used independently. That being said, it contains some nice helper classes to deal with the file system, strings, arrays, naming conventions, etc. If you need such functionalities, you may find this package helpful.
On the other hand, its real purpose is to collect some classes and methods that are being used by multiple packages that are part of Packagified Laravel
DISCLAIMER
It should be production-ready but hasn't been tested enough. You should use it carefully since this package will manipulate your files and folders. Always use a version-control, and make sure you have File History to be able to roll back the changes.
Major Changes v2
- Arry and Text helpers renamed as Arr and Str and both extended to Laravel's Arr and Str helper classes. Some methods renamed because of the name collusion. Arr helper methods' first argument is array now. It was not consitent before. Some methods are removed.
v3 Update guide
- Go to
vendor/bakgul/kernel/config/apps.php
file and see the changes. We have a new key namedroutes
under each app. Bring that new structure to your packagify.php file in your config folder. - Add
'bundler' => 'vite' or 'mix'
to the main array under 'Main from Kernel' section in your packagify.php file in your config folder.
Installation
Commands
This package ships with 4 console commands.
Publish Config
Before you start using one of the main packages, you should publish the settings to be able to modify them.
Arguments
This command has no argument.
Options
- force: To make it work, append " -f " or " --force " to the command. The config file will be regenerated when it's passed, and all the changes you made will be lost.
Publish Stubs
If any stub doesn't meet your needs, you can edit them as you wish. But first, you have to publish them. It's safe to delete the unedited stubs after publishing.
Arguments
This command has no argument.
Options
- force: To make it work, append " -f " or " --force " to the command. The stubs will be swapped with the default ones when it's passed.
Display Helps
To display the help content in the terminal, you can use this command.
Arguments
- from: This is the identifier of the other commands that have help content. To see the list of the identifiers, run the command without this argument.
Options
This command has no options.
Count Code Lines
If you want to know how many lines of code are written on any path, you can use this command. Please note that this will count everything but the empty lines.
Arguments
- path: It should be the relative path to the base path like "app/Models". All repositories, including vendors and node_modules, will be counted if it isn't passed.
Packagified Laravel
The main package that includes this one can be found here: Packagified Laravel