PHPackages                             ryne/laravel-starter - 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. ryne/laravel-starter

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

ryne/laravel-starter
====================

Laravel helper methods

1.3.17(2y ago)0165MITPHP

Since Mar 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dannyJack/package-ryne-laravel-starter)[ Packagist](https://packagist.org/packages/ryne/laravel-starter)[ RSS](/packages/ryne-laravel-starter/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (52)Used By (0)

Laravel starter (ryne/laravel-starter)
======================================

[](#laravel-starter-rynelaravel-starter)

> Version 1.0

Laravel starter comes with helpful methods in making laravel projects

Installation
------------

[](#installation)

download the package via composer

`composer require ryne/laravel-starter`

Files, Classes and Methods
--------------------------

[](#files-classes-and-methods)

### Files

[](#files)

- DBHelper.php - Database migration helper class
- Helpers.php - Global methods
- L0g.php - Custom message logs, uses the original laravel logging class \\Log::class, this only helps the logging error to be arrange with second parameter as array

### Classes

[](#classes)

- DBHelper::class
- L0g::class

to use must call or use the class full path itself by:

```
\Ryne\LaravelStarter\DBHelper
\Ryne\LaravelStarter\L0g

```

or register the class in the app.php configuration in the aliases section to easily access its methods

```
'aliases' => Facade::defaultAliases()->merge([
    'DBHelper' => Ryne\LaravelStarter\DBHelper,
    'L0g' => Ryne\LaravelStarter\L0g,
])->toArray(),

```

### Methods

[](#methods)

#### \*\*\*DBHelper::class

[](#dbhelperclass)

- keyDelete (DBHelper::keyDelete) - static method, use to delete foreign keys in the migration whenever rolling back some migration or simply removing existing foreign keys.

Parameters:

\- String $tableName (required) - table of the foreign keys to be deleted

\- String $key (required) - key name to be deleted

Return: void

Sample usage:

`DBHelper::keyDelete('user_numbers', 'user_numbers_use_id_foreign');`

#### \*\*\*L0g::class

[](#l0gclass)

- info (L0g::info) - static method, use to make an information log in the storage folder, it uses the laravel \\Log::class to output its log while this customize its output message

Parameter:

\- String $message - message to be log

\- ...$params - will accept arrays and string as its value as an additional information about the log

Return: void

Sample usage:

`\L0g::info('test log', ['data' => 'additional data']);`

- error (L0g::info) - static method, use to make an error log in the storage folder, it uses the laravel \\Log::class to output its log while this customize its output message

Parameter:

\- String $message - message to be log

\- ...$params - will accept arrays and string as its value as an additional information about the log

Return: void

Sample usage:

`\L0g::error('test log', ['data' => 'additional data']);`

Sample output:

```
[2022-04-10 03:01:21] local.ERROR: ***XController.php@xmethod:11***
Message: "test log"
| data: additional data

File trace:
	file:
		/var/www/dc/vendor/ryne/laravel-starter/src/L0g.php@39 Function: error()
		/var/www/dc/app/Http/Controllers/XController.php@11 Function: xmethod()
		/var/www/dc/vendor/laravel/framework/src/Illuminate/Routing/Controller.php@54 Function: callAction()
__________________________________________________________________________________________________

```

#### \*\*\*Helpers.php file

[](#helpersphp-file)

- \_vers - use in blade files to import css/js/fonts/images or any other medias within the application that puts a version at end of its url. Version string will contain the modified timestamp of the file

Parameters:

\- String $urlFile - file url of the resource within the application public or storage folder

\- Bool $onlyVersion - output the version only instead of the whole url + version, default is false

Return: String

Sample usage:

`_vers('/images/logo.png');`

Sample output:

`https://localhost/images/logo.png?v=22343423`

- \_trim - use to limit the number of characters of a string then puts a string at the end. If there is more than characters than the max limit then it will concatenate a string suffix that is given in the parameter

Parameters:

\- String $string - string/text to be trimmed

\- Int $limit - number of characters to cut, default is 50 characters

\- String $withSuffix - suffix to be given if string exceed the limit

Return: String

Sample usage:

`_trim('hello world', 7, '...')`

Sample output:

`"hello w..."`

- \_trimText - the same as the \_trim() method, but will remove any html tags that is within the string

Parameters:

\- String $string - string/text to be trimmed

\- Int $limit - number of characters to cut, default is 50 characters

\- String $withSuffix - suffix to be given if string exceed the limit

Return: Boolean true/false

Sample usage:

`_trim('hello world', 7, '...')`

Sample output:

`"hello w..."`

- \_isRoute - use to check the current route of the page

Parameters:

\- String $routeName - the route name to be check

Return: Bool/String false/"active"

Sample usage:

`_isRoute('user.index')`

License
-------

[](#license)

this package is free, open source, and GPL friendly. You can use it for commercial projects, open source projects, or really almost whatever you want.

- Code — MIT License

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~11 days

Recently: every ~0 days

Total

48

Last Release

998d ago

### Community

Maintainers

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

---

Top Contributors

[![dannyJack](https://avatars.githubusercontent.com/u/28219508?v=4)](https://github.com/dannyJack "dannyJack (43 commits)")

### Embed Badge

![Health badge](/badges/ryne-laravel-starter/health.svg)

```
[![Health](https://phpackages.com/badges/ryne-laravel-starter/health.svg)](https://phpackages.com/packages/ryne-laravel-starter)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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