openbuildings / jam
Small but feature rich ORM, has extensible models and builders, baked in upload functionality, supporting multiple backends (rackspace, ftp), polymorphic associations, form builders, nested forms, validators
Installs: 181 068
Dependents: 16
Suggesters: 0
Security: 0
Stars: 31
Watchers: 17
Forks: 7
Open Issues: 13
Type:kohana-module
Requires
- php: ^7.1
- composer/installers: *
- kohana/core: ^3.3.0
- kohana/database: ^3.3.0
- kohana/image: ^3.3.0
- openbuildings/flex-storage: ^0.1.3
Requires (Dev)
Suggests
- openbuildings/jam-auth: A Kohana Auth implementation for Jam, with services
- openbuildings/jam-closuretable: Closuretable implementation for Jam ORM
- openbuildings/jam-monetary: Convert and format currencies and amounts with a Jam field
- openbuildings/jam-tart: Jam admin builder
- dev-master
- 0.6.1
- 0.6.0
- 0.5.24
- 0.5.23
- 0.5.22
- 0.5.21
- 0.5.20
- 0.5.19
- 0.5.18
- 0.5.17
- 0.5.16
- 0.5.15
- 0.5.14
- 0.5.13
- 0.5.12
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.9-rc.1
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.63
- 0.4.62
- 0.4.61
- 0.4.60
- 0.4.59
- 0.4.58
- 0.4.57
- 0.4.56
- 0.4.55
- 0.4.54
- 0.4.53
- 0.4.52
- 0.4.51
- 0.4.50
- 0.4.49
- 0.4.48
- 0.4.47
- 0.4.46
- 0.4.45
- 0.4.43
- 0.4.42
- 0.4.41
- 0.4.40
- 0.4.39
- 0.4.38
- 0.4.37
- 0.4.36
- 0.4.35
- 0.4.34
- 0.4.33
- 0.4.32
- 0.4.31
- 0.4.30
- 0.4.29
- 0.4.28
- 0.4.27
- 0.4.26
- 0.4.25
- 0.4.24
- 0.4.23
- 0.4.22
- 0.4.21
- 0.4.20
- 0.4.19
- 0.4.18
- 0.4.17
- 0.4.16
- 0.4.15
- 0.4.14
- 0.4.13
- 0.4.12
- 0.4.11
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- dev-inverse_of_has_many
This package is auto-updated.
Last update: 2024-12-09 00:03:00 UTC
README
Jam is a small ORM for Kohana 3.3+ that builds on top of Jelly - the project was originally started by Jonathan Geiger and co-developed by Paul Banks.
Jam adds some much needed features to Jelly project:
- Lazy loading of collections
- Modifying Collections on the fly and saving the changes
- Extending Builder, Model and Meta classes with mixins
- Sane validation checks that don't always throw exceptions
- Mass assignment of related models with arrays (easy nested forms)
- Associations separate from Fields - more powerful and easier to extend
- Polymorphic Associations (MTI(Multiple Table Inheritance))
- A lot of tweaks to the api to make it more consistent and to remove redundancy
- Upload Files with temporary directory to survive validation fail (do not upload images twice in forms)
- Upload File Servers - Local, FTP and Rackspace
- Automatically store Uploaded images width / height to relevant fields
- Built In Popular behaviors - Paranoid, Sluggable, Nested, Sortable, Uploadable
- Updated files to the Kohana convention (inside kohana directory)
- Versitile form builder with automattic error display
As the original Jelly had a lot of great but undocumented functionality this guide will try to write about both about the new features and the hidden gems of Jelly, as a more comprehensive guide.
Jam
- Getting Started
- Writing Models & Builders
- Validators
- Fields
- Uploads
- Associations
- Builder
- Behaviors
- Form Builder
Support
Supports the following PHP versions:
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7
- HHVM
Works with MySQL using either the PDO or MySQL driver of Kohana Database module.
Jam was developed by the Clippings Team as part of Clippings.com.
The guide itself is heavily influenced by Rails Guides - they did amazing work of creating an accessible documentation and as I'm not much of a writer I've tried to follow their example as much as possible.