Download the PHP package jaxon-php/jaxon-annotations without Composer

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

Build Status Scrutinizer Code Quality StyleCI codecov

Latest Stable Version Total Downloads Latest Unstable Version License

Annotations for the Jaxon library

This package provides annotation support for the Jaxon library. The configuration options that are related to Jaxon classes can be set directly in the class files using annotations.

Two different syntax are allowed for annotations: the default array-like syntax, and an alternative docblock-like syntax, available since version 1.4.

Installation

Install this package with composer. It requires jaxon-php/jaxon-core v4 or higher.

Set the annotation config option to on.

Usage

The following annotations are provided.

@exclude

It prevents a method or a class from being exported to javascript. It takes an optional boolean parameter.

The PHP-DOC syntax can also be used.

@upload

It adds file upload to an ajax request. It takes the id of the HTML field as a mandatory option. It applies only to methods.

The PHP-DOC syntax can also be used.

@before

It defines a method of the class as a callback to be called before processing the request. It takes the name of the method as a mandatory parameter, and an array as optional parameters to be passed to the callback. It applies to methods and classes.

The PHP-DOC syntax can also be used.

@after

It defines a method of the class as a callback to be called after processing the request. It takes the name of the method as a mandatory parameter, and an array as optional parameters to be passed to the callback. It applies to methods and classes.

The PHP-DOC syntax can also be used.

@callback

It defines a javascript object to be used as callback when processing the ajax request.

It was added in version 2.2.0.

The PHP-DOC syntax can also be used.

@databag

It defines a data bag to be appended to ajax requests to a method. It takes the name of the data bag as a mandatory parameter. It applies to methods and classes.

The PHP-DOC syntax can also be used.

@di

It defines an attribute that will be injected in a class.

When applied on methods and classes, it takes the name and the class of the attribute as parameters.

The class parameter is optional, and can be omitted if it is already specified by a @var annotation.

When applied on attributes, it takes the class of the attribute as only parameter, which can be omitted if it is already specified by a @var annotation.

If the class name does not start with a "\", then the corresponding fully qualified name (FQN) will be set using either the use instructions or the namespace in its source file.

The PHP-DOC syntax can also be used.


All versions of jaxon-annotations with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
jaxon-php/jaxon-core Version dev-main
mindplay/annotations Version ^1.3
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 jaxon-php/jaxon-annotations contains the following files

Loading the files please wait ....