Download the PHP package stwarog/uow-fuel without Composer

On this page you can find all versions of the php package stwarog/uow-fuel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package uow-fuel

Fuel PHP ORM's Unit of Work Layer

Packagist PHP Version Support GitHub tag (latest by date)

Foreword

This package is an extension for UOW Core for Fuel PHP Framework. At this moment it supports ORM models (with relations).

Zero configuration installation

Just find some place to initialize this package (wrap it to the singleton or use dependency injection container), then call:

DB must be a reference to your instance of this class (it is globally available in Fuel). UOW Core will use existing (and configured) object to build queries based on resolved criteria.

Take a look at configuration guide to change default behaviour of package.

The problem & Goal

Fuel's ORM is convenient in use. We can use OOP syntax to handle relations, batch update etc. Assuming we have Todo model with many Lines, let's compare result of test below:

Fuel's way

but the problem is that the Fuel will produce for example (writing part):

In case we have much more related lines it might be a huge performance hit.

"Unit of Work" approach

Let's refactor code above to this plugin syntax:

Script will group changed table columns & fields and built query in more elegant way! All will be wrapped in transaction out of the box.

Of course these examples are trivial. In real life each model may have a lots of nested relations. Entity Manager will take care how final query should looks like.

Contribution

Please take a look at core contribution guide.

License

MIT

Change Log

1.4.0 (2021-07-21)
1.3.1 (2021-07-10)
1.3.0 (2021-06-23)
1.2.0 (2021-06-21)
1.1.3 (2021-01-04)
1.1.2 (2021-01-03)

All versions of uow-fuel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
fuel/core Version ^1.8 | dev-1.9/develop
fuel/orm Version ^1.8 | dev-1.9/develop
stwarog/uow Version ^2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stwarog/uow-fuel contains the following files

Loading the files please wait ....