PHPackages                             brunoabpinto/magic - 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. [Database &amp; ORM](/categories/database)
4. /
5. brunoabpinto/magic

ActiveLibrary[Database &amp; ORM](/categories/database)

brunoabpinto/magic
==================

Editable inline content with database persistence

v1.0.3(5mo ago)05MITPHPPHP ^8.1

Since Jan 15Pushed 5mo agoCompare

[ Source](https://github.com/brunoabpinto/magic)[ Packagist](https://packagist.org/packages/brunoabpinto/magic)[ RSS](/packages/brunoabpinto-magic/feed)WikiDiscussions main Synced today

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

Laravel Magic
=============

[](#laravel-magic)

Editable inline content with automatic database persistence using Livewire.

[![Demo](demo.gif)](demo.gif)

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

[](#installation)

1. Install via Composer:

```
composer require brunoabpinto/magic
```

2. Publish and run migrations:

```
php artisan vendor:publish --tag=magic-migrations
php artisan migrate
```

3. (Optional) Publish config:

```
php artisan vendor:publish --tag=magic-config
```

Usage
-----

[](#usage)

In your Blade views:

```
@magic('Editable text')
```

or if you have multiple @magic blocks with the same text and want to keep them separate:

```
@magic('Editable text', 'my-id')
@magic('Editable text', 'my-other-id')
```

Features
--------

[](#features)

- ✅ Inline editing with contenteditable
- ✅ Automatic database persistence
- ✅ Cache layer for performance
- ✅ Reset to original value
- ✅ Configurable cache and table names

Configuration
-------------

[](#configuration)

After publishing the config file, you can customize:

- Cache driver
- Cache prefix
- Database table name

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10.0+ or 11.0+
- Livewire 4.0+

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance70

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

4

Last Release

168d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13052361?v=4)[Bruno Pinto](/maintainers/brunoabpinto)[@brunoabpinto](https://github.com/brunoabpinto)

### Embed Badge

![Health badge](/badges/brunoabpinto-magic/health.svg)

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

###  Alternatives

[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M245](/packages/filament-support)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[yajra/laravel-datatables-export

Laravel DataTables Queued Export Plugin.

362.2M4](/packages/yajra-laravel-datatables-export)[noerd/noerd

101.4k6](/packages/noerd-noerd)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

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

PHPackages © 2026

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