Download the PHP package notifius/php-wctp without Composer

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

php-wctp

A PHP library for creating and submitting XML WCTP requests and responses

Not production ready

Not ready for every day use! We will tag a version 1.0.0 when we're ready for you to use in production. For now, expect namespace updates and other breaking changes.

Getting Started

Install the library using composer:

Example use of library:

XML Request Method Templating

WCTP Method notifius/wctp Status
wctp-ClientQuery NotifiUs\WCTP\XML\ClientQuery
wctp-LookupSubscriber NotifiUs\WCTP\XML\LookupSubscriber
wctp-DeviceLocation NotifiUs\WCTP\XML\DeviceLocation
wctp-MessageReply NotifiUs\WCTP\XML\MessageReply
wctp-PollForMessages NotifiUs\WCTP\XML\PollForMessages ×
wctp-ReturnToSvc NotifiUs\WCTP\XML\ReturnToSvc
wctp-SendMsgMulti NotifiUs\WCTP\XML\SendMsgMulti ×
wctp-StatusInfo NotifiUs\WCTP\XML\StatusInfo ×
wctp-SubmitClientMessage NotifiUs\WCTP\XML\SubmitClientMessage
wctp-SubmitRequest NotifiUs\WCTP\XML\SubmitRequest
wctp-VersionQuery NotifiUs\WCTP\XML\VersionQuery

General Information

Dates

We rely on the nesbot/carbon composer package for handling dates throughout our library.

Add WCTP token to wctp-Operation

For all XML WCTP methods below, you can optionally pass in a wctpToken to the constructor:

This will add the XML attribute wctpToken="token" to the <wctp-Operation> element.

Return Type

The $xml variable will be a SimpleXMLElement Object. You can get the XML as a string by calling $xml->asXML()

Relaxed parameter requirements

While we follow the WCTP recommendations for parameters and lengths, we don't enforce allowed characters. Anything that is not XML compliant will be automatically escaped, so keep that in mind. This should provide an additional level of flexibility (through conventions) and modernize the now ~15 year-old protocol.

WCTP XML Methods

wctp-MessageReply

Create an XML representation of the wctp-MessageReply operation.

wctp-ClientQuery

Create an XML representation of the wctp-ClientQuery operation.

wctp-VersionQuery

Create an XML representation of the wctp-VersionQuery operation.

You can also leave off optional parameters like this:

License

The php-wctp library is open-source software licensed under the MIT license.

Testing

After cloning the repository and running composer install, you can run the test suite like this:

Security Vulnerabilities

If you discover a security vulnerability, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.


All versions of php-wctp with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
ext-simplexml Version ^7.3|^8.0
nesbot/carbon Version ^2.57.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 notifius/php-wctp contains the following files

Loading the files please wait ....