Download the PHP package georgo/wsdl-creator without Composer

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

PHP WSDL Creator

Build Status Scrutinizer Quality Score Coverage Status Dependency Status

Introduction

WSDL creator allows generating WSDL documents based on PHP classes using annotations and reflection mechanism. This generator also give possibilty to generating overview methods and parameters with SOAP examples used in WSDL.

Support: >= PHP5.5.

Installation

To install wsdl-creator at your project use composer.

Create new project:

composer.phar create-project georgo/wsdl-creator myproject

or add to the composer.json file:

Configuration

To start working with creator you must create new WSDLCreator object and define for him:

SOAP server must be created in location specified in WSDLCreator.

To render XML use method renderWSDL. To properly load generator classes use composer loader which is in vendor/autoload.php.

Full configutaion listing:

Now if we try call address http://localhost/wsdl-creator/ClassName.php?wsdl you recive WSDL document.

Define web service method

To define is a web service method you must use @WebMethod annotation.

Simple type

Simple types are described here.

Usage

So you type @param next type one of simple types (string) after name of variable ($name).


You can also use arrays of the simple types.

Usage

In input parameter now you must define what type of array you pass (string[]).


Example

SimpleTypeExample


Annotations

Wrapper type

Wrapper types are user defined clases which you can generate WSDL complex types.

Usage

You must define class User with public fields and doc comments which contains field type as example:

This mechanism use reflection, i.e. User class must be visible to the generated class - possible use namespaces (\Namespace\To\User).


You can define arrays of wrappers.

Usage

This annotation will generate array of users.


Example

WrapperTypeExample


Annotations

Object type

You can dynamically create object at runtime. Use object parameter type.

Usage

This annotation create complex type with name and age elements.


Also you can wrapp classes in object.

Usage

Above example will return UserNameWithId object which contains pointer to User complex type and int type.


Another option is creating array of objects.

Usage

This annotation creata array of objects with payment and user on each element of array.


Example

ObjectTypeExample


Additional info

In object you can use array of wrappers and array of simple types.


Annotations

Service overview

You can generate service overview through renderWSDLService method. This show all infos about method and parameters used in service with sample SOAP request.

Example

Styles

By default, the WSDLCreator will generate WSDLs using the rpc/literal binding style.

To specify rpc/encoded or a wrapped document/literal binding style, set the binding style on the WSDLCreator object.

When specifying the wrapped document/literal binding style, you can use WSDL\DocumentLiteralWrapper to automatically wrap the returning value in an appropriate wrapped object.


All versions of wsdl-creator with dependencies

PHP Build Version
Package Version
Requires letsdrink/ouzo-goodies Version 1.5.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 georgo/wsdl-creator contains the following files

Loading the files please wait ....