PHPackages                             archipro/silverstripe-db-json - 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. archipro/silverstripe-db-json

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

archipro/silverstripe-db-json
=============================

A Silverstripe CMS module to enable the creation of MySQL 8 JSON column on DataObjects

0.0.0(1y ago)482.7k↓16.6%2BSD-3-ClausePHP

Since Oct 20Pushed 1y ago3 watchersCompare

[ Source](https://github.com/archiprocode/silverstripe-db-json)[ Packagist](https://packagist.org/packages/archipro/silverstripe-db-json)[ RSS](/packages/archipro-silverstripe-db-json/feed)WikiDiscussions 0 Synced 1mo ago

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

Silverstripe CMS Json DBField
=============================

[](#silverstripe-cms-json-dbfield)

MySQL 8 introduced support for native JSON fields. This module adds support for creating and using those fields in Silverstripe CMS.

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

[](#installation)

```
composer require archipro/silverstripe-db-json

```

Usage
-----

[](#usage)

Simply reference the `DBJson` class in your DataObject's `$db` array. This will automatically add a `json` field to the database table.

```
