PHPackages                             bubalubs/gravity - 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. [Framework](/categories/framework)
4. /
5. bubalubs/gravity

ActiveLibrary[Framework](/categories/framework)

bubalubs/gravity
================

A Flexible Laravel CMS

0.2.16(4y ago)5762[6 issues](https://github.com/Bubalubs/gravity/issues)[1 PRs](https://github.com/Bubalubs/gravity/pulls)MITPHPPHP &gt;=7.2

Since Dec 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Bubalubs/gravity)[ Packagist](https://packagist.org/packages/bubalubs/gravity)[ RSS](/packages/bubalubs-gravity/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (4)Versions (36)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/c52a121d69827975e222e0d3adbad9056f3d59cfc252ea08f0da3f4ed14c59c8/68747470733a2f2f706f7365722e707567782e6f72672f627562616c7562732f677261766974792f762f737461626c65)](https://packagist.org/packages/bubalubs/gravity)[![License](https://camo.githubusercontent.com/6511fe7d0922440bcd91215f9d2e56a2795a92af079407fd6b086d04e67fbf94/68747470733a2f2f706f7365722e707567782e6f72672f627562616c7562732f677261766974792f6c6963656e7365)](https://packagist.org/packages/bubalubs/gravity)

Gravity is a Laravel package that sets up a light flexible CMS with an admin control panel

[![screenshot](/screenshot1.png)](/screenshot1.png)

Installation
============

[](#installation)

Install using composer

`composer require bubalubs/gravity`

Create database tables by running migrations

`php artisan migrate`

Publish CSS/JS files for admin control panel

`php artisan vendor:publish --tag=public`

Add the HasRoles Trait to your User model

```
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use Notifiable, HasRoles;

    ...

```

To get going with basic auth, you can use [Laravel Breeze](https://laravel.com/docs/10.x/starter-kits#laravel-breeze)

Usage
=====

[](#usage)

Using blade templating, you can output the CMS values.

To ouput global content use `{{ $globalContent['field-name']}}`

To show page content use `{{ $content['field-name'] }}`

Entities (Models)
=================

[](#entities-models)

Entities allow you to work with a custom Laravel model and adds CRUD options to the admin.

To work with images on an entity your model must implement the following interface and trait:

```
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia\HasMedia;
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;

class YourModel extends Model implements HasMedia
{
    use HasMediaTrait;

    ...

```

Customizing Views
=================

[](#customizing-views)

Publish view files to your laravel view directory then edit them to make changes

`php artisan vendor:publish --provider=Bubalubs\Gravity\GravityServiceProvider`

Updating
========

[](#updating)

Update to the latest views (This will overwrite any changes you have made)

`php artisan vendor:publish --provider=Bubalubs\Gravity\GravityServiceProvider --tag=public --force`

Thanks
======

[](#thanks)

Thanks to [spatie](https://spatie.be/open-source) for their awesome libraries that this package relies on for permissions and media library!

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.5% 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 ~21 days

Recently: every ~28 days

Total

33

Last Release

1671d ago

### Community

Maintainers

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

---

Top Contributors

[![Bubalubs](https://avatars.githubusercontent.com/u/4392150?v=4)](https://github.com/Bubalubs "Bubalubs (91 commits)")[![jlabs](https://avatars.githubusercontent.com/u/5947894?v=4)](https://github.com/jlabs "jlabs (18 commits)")

---

Tags

adminadmin-dashboardcmslaravellaravel-package

### Embed Badge

![Health badge](/badges/bubalubs-gravity/health.svg)

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

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)

PHPackages © 2026

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