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(4mo ago)04MITPHPPHP ^8.1

Since Jan 15Pushed 4mo agoCompare

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

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

35

—

LowBetter than 80% of packages

Maintenance78

Regular maintenance activity

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

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

122d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/179d61df4249373d3470b1fd3222fcd5a54db6776f45202f1a1f97789e87113f?d=identicon)[brunoabpinto](/maintainers/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

[pavel-mironchik/laravel-backup-panel

An interface for Spatie Laravel Backup package

41469.6k1](/packages/pavel-mironchik-laravel-backup-panel)[rezaamini-ir/migrator

Migrator is a GUI migration manager for Laravel.

52428.4k2](/packages/rezaamini-ir-migrator)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[bastinald/laravel-automatic-migrations

Automatic Laravel model migrations.

461.6k3](/packages/bastinald-laravel-automatic-migrations)[flobbos/laravel-pagebuilder

Build content in your database with translations.

151.3k](/packages/flobbos-laravel-pagebuilder)

PHPackages © 2026

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