Download the PHP package mathielen/cxml without Composer

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

What is it?

cXML is a streamlined protocol intended for consistent communication of business documents between procurement applications, e-commerce hubs and suppliers. http://cxml.org/

cXML Reference Guide (PDF): http://xml.cxml.org/current/cXMLReferenceGuide.pdf

Status

CXML Version Status Test
1.2.050 OK
1.2.053 OK

Getting Started

Installation

Then include Composer’s autoloader:

Get current dtd definition files

  1. Download get current Specification from http://cxml.org/downloads.html
  2. Extract files
  3. Use cXML.dtd for validation (see below)

Quickstart

Identity and credentials

Register Handler

Build cXML

Register outgoing cXML documents

You may want to register sent-out documents so they can be referenced by subsequent request-documents via payloadId.

Process incoming cXML documents

Putting it all together

Handling Date vs DateTime

The cXML specification is not perfectly clear about the format of dates and times. The specification says that dates should be formatted "in the restricted subset of ISO 8601". That means that the format could either be a full ISO 8601 format with time and timezone information (i.e. 2015-04-14T13:36:00-08:00) or a format without time and timezone (2015-04-14).

With some fields the actual time of day is not relevant and could lead to confusion. For example, the requestedDeliveryDate field in ItemOut. Real-world experience shows that here it is common to only specify the date. Althout one could argue that the time of day is still relevant here for real tight on-point deliveries.

To solve this problem we introduced a determined CXml\Model\Date class in case of using an explicit date (without time). This class extends DateTime and is therefore compatible with the rest of the model. The class enforces a date-only representation (Y-m-d).

Serialization

You should use the CXml\Model\Date class when generating your object-graph in cases you want to output a date-only value.

Deserialization

When parsing a date-property from a cXML document, the CXml\Model\Date will be instantiated if a date-only value was discovered (Y-m-d).

Credits


All versions of cxml with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-simplexml Version *
ext-dom Version *
ext-libxml Version *
beberlei/assert Version @stable
jms/serializer Version ^3.30.0
psr/log Version ^1.0 || ^2.0 || ^3.0
psr/event-dispatcher Version ^1.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 mathielen/cxml contains the following files

Loading the files please wait ....