PHPackages                             bakgul/kernel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bakgul/kernel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bakgul/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.

v4.0.2(3y ago)123010MITPHPPHP ^8.1

Since May 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bulentAkgul/kernel)[ Packagist](https://packagist.org/packages/bakgul/kernel)[ RSS](/packages/bakgul-kernel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (36)Used By (10)

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**](https://github.com/bulentAkgul/packagified-laravel)

#### DISCLAIMER

[](#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**](https://github.com/bulentAkgul/file-history) to be able to roll back the changes.

### Major Changes v2

[](#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

[](#v3-update-guide)

- Go to `vendor/bakgul/kernel/config/apps.php` file and see the changes. We have a new key named `routes` 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
------------

[](#installation)

```
sail composer require bakgul/kernel

```

Commands
--------

[](#commands)

This package ships with 4 console commands.

### Publish Config

[](#publish-config)

Before you start using one of the main packages, you should publish the settings to be able to modify them.

```
sail artisan packagify:publish-config

```

#### Arguments

[](#arguments)

This command has no argument.

#### Options

[](#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

[](#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.

```
sail artisan packagify:publish-stub

```

#### Arguments

[](#arguments-1)

This command has no argument.

#### Options

[](#options-1)

- **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

[](#display-helps)

To display the help content in the terminal, you can use this command.

```
sail artisan get-help {from}

```

#### Arguments

[](#arguments-2)

- **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

[](#options-2)

This command has no options.

### Count Code Lines

[](#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.

```
sail artisan count {path?}

```

#### Arguments

[](#arguments-3)

- **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
-------------------

[](#packagified-laravel)

The main package that includes this one can be found here: [**Packagified Laravel**](https://github.com/bulentAkgul/packagified-laravel)

The Packages That Dependent On This One
---------------------------------------

[](#the-packages-that-dependent-on-this-one)

- [**Command Evaluator**](https://github.com/bulentAkgul/command-evaluator)
- [**File Content**](https://github.com/bulentAkgul/file-content)
- [**File History**](https://github.com/bulentAkgul/file-history)
- [**Laravel File Creator**](https://github.com/bulentAkgul/laravel-file-creator)
- [**Laravel Resource Creator**](https://github.com/bulentAkgul/laravel-resource-creator)
- [**Laravel Package Generator**](https://github.com/bulentAkgul/laravel-package-generator)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~1 days

Total

35

Last Release

1181d ago

Major Versions

v1.1.19 → v2.0.02023-01-02

v2.1.0 → v3.0.02023-01-25

v3.1.1 → v4.0.02023-02-19

PHP version history (2 changes)v1.1.0PHP ^8.0.2

v3.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc3c26b9029d2705ffcd2baebee543db52c24b1fb5cb29c5557436de853d42c1?d=identicon)[bulentAkgul](/maintainers/bulentAkgul)

---

Top Contributors

[![bulentAkgul](https://avatars.githubusercontent.com/u/12589023?v=4)](https://github.com/bulentAkgul "bulentAkgul (247 commits)")

### Embed Badge

![Health badge](/badges/bakgul-kernel/health.svg)

```
[![Health](https://phpackages.com/badges/bakgul-kernel/health.svg)](https://phpackages.com/packages/bakgul-kernel)
```

###  Alternatives

[lbaey/chromedriver

Utility for installing Chromedriver, whatever platform you are on, for use with Behat

1459.5k1](/packages/lbaey-chromedriver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
