PHPackages                             dev-craft/lara-directives - 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. dev-craft/lara-directives

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

dev-craft/lara-directives
=========================

Short laravel directories that requires less code and give you much functionality.

v0.0.3(5y ago)45MITPHPPHP ^7.1.3

Since Sep 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vishalribdiya/devcraft-lara-directives)[ Packagist](https://packagist.org/packages/dev-craft/lara-directives)[ RSS](/packages/dev-craft-lara-directives/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Laravel Directives
==================

[](#laravel-directives)

Laravel directivies which give you more functionality by using just short line of code.

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Github All Releases](https://camo.githubusercontent.com/a87fcf2dc26b4aab13d1543f96f23dc52cee3d520aaa649f8f01e1d44af8675b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f76697368616c726962646979612f64657663726166742d6c6172612d646972656374697665732f746f74616c2e737667)](https://github.com/vishalribdiya/devcraft-lara-directives)[![Open Issues](https://camo.githubusercontent.com/d6f835131ad4812ec913a9a6ed37a80abb1977547174f30f40ecd1ee48ff316f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f76697368616c726962646979612f64657663726166742d6c6172612d64697265637469766573)](https://github.com/vishalribdiya/devcraft-lara-directives/issues)

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

[](#installation)

You can install the package via composer:

```
composer require "dev-craft/lara-directives":"dev-master"

```

Usage
-----

[](#usage)

### @show

[](#show)

```
@show(object.property)

```

Where Object should be the variable name and the property should be its property.

e.g lets say i have `$user` variable and i want to show the `username` from it. it will write below code.

`@show(user.username)`

It will display the value of given object's property, only if its value is not null.

If the value is null or empty it will return 'N/A'

### @time

[](#time)

```
@time(object.property)

```

it will disaply the time as default date format `Y-m-d H:i:s`

now if `$user` has `created_at` property and i want to display it i will write below code.

`@time(user.created_at)`

### Custom time format using @time()

[](#custom-time-format-using-time)

```
@time(object.property | H:i:s)

```

Its also supporting nested properties so you will use that too.

`@time(user.address.created_at)`

### @human\_time

[](#human_time)

It will return the human readable time from given datetime. e.g `1 minute ago`

```
@human_time(object.property)

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Total

3

Last Release

2117d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/70788916?v=4)[Vishal Ribdiya](/maintainers/vishalribdiya)[@vishalribdiya](https://github.com/vishalribdiya)

---

Top Contributors

[![vishalribdiya](https://avatars.githubusercontent.com/u/70788916?v=4)](https://github.com/vishalribdiya "vishalribdiya (27 commits)")

### Embed Badge

![Health badge](/badges/dev-craft-lara-directives/health.svg)

```
[![Health](https://phpackages.com/badges/dev-craft-lara-directives/health.svg)](https://phpackages.com/packages/dev-craft-lara-directives)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.6k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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