All Projects → phproberto → Joomla Entity

phproberto / Joomla Entity

Licence: other
Semantical API for Joomla!

Projects that are alternatives of or similar to Joomla Entity

Factory Bot
🤖 Provides a fixture factory for doctrine/orm entities.
Stars: ✭ 57 (+128%)
Mutual labels:  orm, entity
Kotgres
SQL generator and result set mapper for Postgres and Kotlin
Stars: ✭ 21 (-16%)
Mutual labels:  orm, entity
Hunt Entity
An object-relational mapping (ORM) framework for D language (Similar to JPA / Doctrine), support PostgreSQL and MySQL.
Stars: ✭ 51 (+104%)
Mutual labels:  orm, entity
Pqt
Postgres schema definition, sql/go, code generation package.
Stars: ✭ 65 (+160%)
Mutual labels:  orm, entity
Kripton
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.
Stars: ✭ 110 (+340%)
Mutual labels:  orm, entity
Freezer
A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Stars: ✭ 326 (+1204%)
Mutual labels:  orm, entity
Mikro Orm
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.
Stars: ✭ 3,874 (+15396%)
Mutual labels:  orm, entity
Datamappify
Compose, decouple and manage domain logic and data persistence separately. Works particularly great for composing form objects!
Stars: ✭ 338 (+1252%)
Mutual labels:  orm, entity
Records
SQL for Humans™
Stars: ✭ 6,761 (+26944%)
Mutual labels:  orm
Gantry5
🚀 Next Generation Template / Theme Framework
Stars: ✭ 895 (+3480%)
Mutual labels:  joomla
One
一个极简高性能php框架,支持[swoole | php-fpm ]环境
Stars: ✭ 789 (+3056%)
Mutual labels:  orm
Diesel
A safe, extensible ORM and Query Builder for Rust
Stars: ✭ 7,702 (+30708%)
Mutual labels:  orm
Xattacker
X Attacker Tool ☣ Website Vulnerability Scanner & Auto Exploiter
Stars: ✭ 897 (+3488%)
Mutual labels:  joomla
Gonet
go分布式服务器,基于内存mmo
Stars: ✭ 804 (+3116%)
Mutual labels:  orm
Entityframework.lazyloading
LazyLoading for EF Core
Stars: ✭ 23 (-8%)
Mutual labels:  orm
Droidparts
Stars: ✭ 785 (+3040%)
Mutual labels:  orm
Doctrinebehaviors
Doctrine2 behavior traits
Stars: ✭ 782 (+3028%)
Mutual labels:  orm
Joomla External Login
The External Login project allows Joomla! to manage external Authentication Servers
Stars: ✭ 24 (-4%)
Mutual labels:  joomla
Queryablelist
Python module to add support for ORM-style filtering to any list of items
Stars: ✭ 19 (-24%)
Mutual labels:  orm
Delphi Orm
Delphi ORM
Stars: ✭ 16 (-36%)
Mutual labels:  orm

Entity system for Joomla!

Because developing Joomla extensions should be fun and easy.

Quickstart

Let's use a fast example. This is how you actually can load an article by its id in Joomla:

Load an article

Where $article is a stdClass object. You can access its properties but it's really a dummy thing. An end point.

With an Article entity you can do:

Load an article

Here $article is an Article entity. An object that exposes its logic and resources to the developer.

Some awesome things that you can do with that article entity:

// Use article as entity
echo $article->get('title');

// Use params transparently
if ($article->param('show_title', '1') === '1')
{
	echo $article->get('title');
}

// Check if article is featured
if ($article->isFeatured())
{
	// Do something
}

// Check if article has an intro image
if ($article->hasIntroImage())
{
	$image = $article->getIntroImage();
	echo '<img src="' . JUri::root(true) . '/' . $image['url'] . '" />';
}

// Check article state
if ($article->isPublished())
{
	echo 'Article published!';
}

// Retrieve article category
echo $article->category()->get('title');

// You can modify article properties
$article->set('title', 'My modified title');

// And save it
try	
{
	$article->save();
}
catch (\RuntimeException $e)
{
	echo 'There was an error saving article: ' . $e->getMessage();
}

See the full documentation for other examples.

Installation

Go to the releases section and follow the How to install / upgrade instructions in the latest release.

Documentation

Documentation is published in https://phproberto.github.io/joomla-entity/.

Requirements

  • PHP 7.1+
  • Joomla! CMS v3.9+

Copyright & License

This library is licensed under GNU LESSER GENERAL PUBLIC LICENSE.

Copyright (C) 2017-2019 Roberto Segura López - All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].