bkwld / decoy
A Laravel model-based CMS by Bukwild
Installs: 3 206
Dependents: 0
Suggesters: 0
Security: 0
Stars: 303
Watchers: 25
Forks: 44
Open Issues: 22
Requires
- php: >=5.4.0
- anahkiasen/html-object: ~1.3
- bkwld/cloner: ^3.2.2
- bkwld/croppa: ~4.0
- bkwld/laravel-haml: ~2.0
- bkwld/library: ^4.0.2
- bkwld/upchuck: ^2.4.1
- cviebrock/eloquent-sluggable: 4.5.1.1
- doctrine/dbal: ^2.5
- illuminate/console: ^5.0
- illuminate/support: ^5.0
- jenssegers/agent: ~2.1
- league/csv: ^9.1
- symfony/yaml: ~2.5 || ^3.0 || ^4.0
- weotch/former: ^4.1.0
- zencoder/zencoder-php: ~2.2
Requires (Dev)
- adlawson/vfs: ^0.12.1
- fideloper/proxy: ~3.3 || ^4.0
- filp/whoops: ~2.0
- fzaninotto/faker: ~1.4
- laravel/framework: 5.4.* || 5.5.* || 5.6.*
- laravel/tinker: ^1.0
- league/flysystem: ^1.0
- league/flysystem-vfs: ^1.0
- mockery/mockery: 0.9.*
- php-coveralls/php-coveralls: ^1.0 || ^2.0
- phpunit/phpunit: ~6.0 || ~7.0
- symfony/css-selector: 3.1.* || ^4.0
- symfony/dom-crawler: 3.1.* || ^4.0
Conflicts
- anahkiasen/html-object: 1.4.1
- laravel/framework: <5.4.0
- dev-master
- 5.11.1
- 5.11.0
- 5.10.0
- 5.9.1
- 5.9.0
- 5.8.1
- 5.8.0
- 5.7.1
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.1
- 5.5.0
- 5.4.0
- 5.3.1
- 5.3.0
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.11.3
- 4.11.2
- 4.11.1
- 4.11.0
- 4.10.4
- 4.10.3
- 4.10.2
- 4.10.1
- 4.10.0
- 4.9.5
- 4.9.4
- 4.9.3
- 4.9.2
- 4.9.1
- 4.9.0
- 4.8.6
- 4.8.5
- 4.8.4
- 4.8.3
- 4.8.2
- 4.8.1
- 4.8.0
- 4.7.1
- 4.7.0
- 4.6.0
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.1
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.7
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.12
- 3.4.11
- 3.4.10
- 3.4.9
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- dev-4.x-webpack
This package is auto-updated.
Last update: 2024-12-05 20:23:59 UTC
README
Decoy is a PHP content management written for the Laravel framework that allows you to access your data using standard Laravel Eloquent models.
- Quick Start: http://docs.decoy.bukwild.com/quick-start
- Documentation: http://docs.decoy.bukwild.com
- Case study: http://www.bukwild.com/project/decoy
- Announcement article: http://www.bukwild.com/article/introducing-decoy
Screenshots
About
Since 2012 and Laravel 3, Bukwild has been maintaining our own content management system that we call Decoy. Decoy is meant to reduce the development effort for implementing content management while being highly flexible. And it helps you generate a great looking, easy to use admin interface; no manual required.
The driving philosophy behind Decoy is that a CMS should share models with your public facing app; your app interacts with data stored with Decoy only through standard Laravel models. This approach makes reading controller code simple (Article::ordered()->take(6)->get()
), gives you access to Laravel mutators so you views are human readable ($article->full_date
), and allows you to share business logic between admin and public sites. There is no additional templating or querying language to learn. After the CMS is setup, the developer interacts with the data using purely Laravel APIs.
Features
Besides it’s model-centric paradigm, Decoy includes the following features:
- Great looking, zero-training required design
- Croppa integration for advanced image support including cropping, setting focal point, and storing alt text
- Video encoding via Zencoder integration
- WYSIWYG text editing via Redactor
- Support for all Laravel relationship types
- Easy creation of content editing forms using Former
- Remote file storage (S3, etc) via Upchuck and Flysystem
- Granular admin permissioning
- Fully customizable edit views with Bootstrap support
- Commands panel for executing artisan commands via web UI
- Cloning of content, even across servers
- Localization
- Organized key-value pair type data as Elements
- Drag and drop ordering of data in list views
- Built in interface for creating 301 and 302 redirects
- All configuration stored in the filesystem to keep your team in sync via Git (or whatever VCS)
Implementation
Decoy installs into your app as a composer package and integrates with your project rather than being a standalone install. Decoy shares the Eloquent models of your public site and stores data in regular Laravel migrated tables. Your controllers and views do not need to touch Decoy at all and while your models need to use Decoy’s subclass of Eloquent\Model
, there is very little behavior added at model instantiation. In other words, Decoy adds almost no overhead to your public site.
Implementing Decoy to manage model is done through a common MVC pattern that allows for overriding of default behavior at every step:
- The admin nav, permission levels, localization options, and other settings are stored in Laravel-style php config arrays
- For each manageable database table / Eloquent model, a Laravel-style controller is created that allows you to override defaults like how the title of the model appears, it’s description, how it can be searched within the admin, and even override any CRUD method (create, update, destroy, etc).
- You specify validation rules, ordering scopes, and features like which relationships to follow when cloning from the model, adding specifically named properties and methods.
- Finally, you create a regular Laravel view containing the form that should be shown to the admin during creation and editing of content. This is easier than it sounds through support of Former and many Decoy-unqiue Former fields like our image uploader and wysiwyg types.
Next steps
Interested in giving Decoy a spin? Check out the quick start guide.