Download the PHP package enzyme/axiom without Composer

On this page you can find all versions of the php package enzyme/axiom. 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 axiom

Build Status Coverage Status Scrutinizer Code Quality

Axiom is a collection of PHP PSR-2 compliant interfaces and classes designed to help you flesh out domain driven projects. Sticking to a framework like Axiom will help keep all your projects consistent in their layout, design and implementation, hopefully making your job (and others working on your code) easier.

Installation

What's included

Atoms

Atoms are wrappers around native php variable types such as int and string. They are used when a service or class expects one of these values and doesn't want to litter the code with type checks such as if (is_string($var)) {...}.

Bags

Bags are used to carry data around the system, whether from the user, an API or an external service.

Exceptions

These exceptions are thrown by the collection of concrete classes included when internal errors occur.

Factories

A factory is responsible for the creation and modification of models. It has intimate knowledge of how a model is built and the various attributes it acquires.

Models

Models represent objects in your domain. They are unique, have a set of attributes and are the primary resource of your application.

Recipients

Recipients are parts of your system that require knowledge of when a model is either successfully or unsuccessfully created, updated or destroyed after they have initiated a command.

Reports

Reports are containers that carry a message and optional details associated with the outcome of some event or action in your domain. For example, when a model failed to be created, a FailureReport can be returned with the details of what went wrong.

Repositories

Repositories are model collections that allow the system to store and retrieve models from an underlying persistence layer.

Concrete classes

There are a couple concrete classes included with Axiom that you can use straight out of the box. These are:

Atoms

Bags

Reports

Repositories

Generators

Axiom comes with a set of command line generators for quickly creating skeleton implementations of the various interfaces included.

To use the command line tool, run it from the console at the root of your project as:

When create a resource using the command line tool, you can either specify the namespace and location of the file using the optional parameters --location=LOCATION and --namespace=NAMESPACE or using an axiom.yaml config file (recommended).

axiom.yaml

The axiom.yaml file lays out the structure for your generated classes and looks something like:

When generating a class using the command line tool and no entry for the class type is found in the axiom.yaml (optional) file or through the command line parameter, an exception will be thrown.

Resource stack

To create an entire resource stack, which includes a repository, factory, bag and model for a domain resource, you can use the make:stack command. This command does not accept namespaces and locations from the command line, so you will need a axiom.yaml file present. If you want to use the stack generator but want to ignore one or more of the included generated classes, you can use the --ignore parameter. Simply pass the --ignore parameter a string with a comma-delimited list of the resource types to ignore, eg: --ignore="model" or --ignore="factory,bag".

Contributing

Please see CONTRIBUTING.md

License

MIT - Copyright (c) 2015 Tristan Strathearn, see LICENSE


All versions of axiom with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
symfony/console Version ^3.0
enzyme/parrot Version ^0.0.1
icanboogie/inflector Version ^1.4
enzyme/freckle Version ^0.3.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 enzyme/axiom contains the following files

Loading the files please wait ....