oxygen/data

Oxygen's Data Layer
1,015
Install
composer require oxygen/data
Latest Version:0.12.1
PHP:>=8.1.0
Laravel:10
Older releases:4 · 5 · 6
License:MIT
Last Updated:Feb 23, 2026
Links: GitHub  ·  Packagist
Maintainer: neon64

Oxygen - Data

This repository contains the Oxygen Data Layer.

For more information visit the Core repository.

Doctrine 2 Wrapper

The data package is focused around the robust Doctrine 2 ORM.

Behaviours

  • Accessors provides automatic getXYZ and setXYZ methods on entities
  • Authentication provides an email, password and remember token.
  • CacheInvalidator adds a cacheInvalidationSettings field, where different entities can be registered. When $this is updated, the event oxygen.entity.cache.invalidated will be fired for each of the entities inside cacheInvalidationSettings.
  • Fillable adds the fromArray method which can update entity fields from an input array
  • PrimaryKey adds a simple ID field with getters and setters.
  • Publishes adds a stage field, entities can be either a draft or published
  • RememberToken provides an email and remember token.
  • SoftDeletes adds the deletedAt field, call delete() on the entity to 'soft' delete it.
  • Timestamps adds createdAt and updatedAt fields that are automatically updated
  • Versions adds versioning capabilities to the entity (warning: it requires two fields (versions and headVersion) to be already present in the entity and set up with the correct relationship information)

Related Packages

gzero/cms

Gzero CMS

3,983 6
atlantis-labs/atlantis3-framework

Atlantis CMS 3 framework

3,054
centagon/build-core

The core of the Build CMS.

289 1
doptor/doptor

A Laravel Based CMS

17 7

Version History

Version Released PHP Laravel License
0.12.1 >=8.1.0 ^10.0 MIT
0.12.0 >=8.1.0 ^10.0 MIT
0.11.9 >=7.4.0 ~6.0 MIT
0.11.8 >=7.4.0 ~6.0 MIT
0.11.7 >=7.4.0 ~6.0 MIT