BeSimpleSoap/Resources/doc/installation.rst

105 lines
2.7 KiB
ReStructuredText
Raw Normal View History

2011-08-02 23:27:56 +02:00
Installation
============
Requirements
------------
2011-11-13 22:40:42 +01:00
Install and enable PHP's SOAP extension.
Download `BeSimple\\SoapCommon`_ and `BeSimple\\SoapServer`_ (only for the server part) and/or `BeSimple\\SoapClient`_ (only for ther client part).
.. code-block:: ini
; deps file
[BeSimple\SoapCommon]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapCommon.git
target=besimple-soapcommon
2011-11-13 22:40:42 +01:00
[BeSimple\SoapClient]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapClient.git
target=besimple-soapclient
2011-11-13 22:40:42 +01:00
[BeSimple\SoapServer]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapServer.git
target=besimple-soapserver
2011-11-13 22:40:42 +01:00
Add `BeSimple` libraries in autoload.php
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
2011-12-01 11:12:40 +01:00
'BeSimple\\SoapCommon' => __DIR__.'/../vendor/besimple-soapcommon/src',
'BeSimple\\SoapServer' => __DIR__.'/../vendor/besimple-soapserver/src',
'BeSimple\\SoapClient' => __DIR__.'/../vendor/besimple-soapclient/src',
2011-11-13 22:40:42 +01:00
// your other namespaces
));
Download `Zend\\Soap`_ and `Zend\\Mime`_ or add in `deps` file. `Zend` library is required only for the server part.
2011-08-02 23:27:56 +02:00
.. code-block:: ini
; deps file
[Zend\Soap]
git=http://github.com/BeSimple/zend-soap.git
target=/zend-framework/library/Zend/Soap
2011-08-07 11:34:00 +02:00
[Zend\Mime]
git=http://github.com/BeSimple/zend-mime.git
target=/zend-framework/library/Zend/Mime
Add `Zend` library in autoload.php
2011-08-02 23:27:56 +02:00
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
2011-08-07 11:34:00 +02:00
'Zend' => __DIR__.'/../vendor/zend-framework/library',
2011-08-02 23:27:56 +02:00
// your other namespaces
));
Installation
------------
`Download`_ the bundle or add in `deps` file
.. code-block:: ini
; deps file
[BeSimpleSoapBundle]
git=http://github.com/BeSimple/BeSimpleSoapBundle.git
target=/bundles/BeSimple/SoapBundle
Add `BeSimple` in autoload.php
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
'BeSimple' => __DIR__.'/../vendor/bundles',
// your other namespaces
));
Add `BeSimpleSoapBundle` in your Kernel class
.. code-block:: php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
2011-08-09 13:48:56 +02:00
new BeSimple\SoapBundle\BeSimpleSoapBundle(),
2011-08-02 23:27:56 +02:00
// ...
);
}
2011-08-07 11:34:00 +02:00
.. _`Zend\\Soap`: http://github.com/BeSimple/zend-soap
.. _`Zend\\Mime`: http://github.com/BeSimple/zend-mime
2011-11-13 22:40:42 +01:00
.. _`BeSimple\\SoapCommon`: http://github.com/BeSimple/BeSimpleSoapCommon
.. _`BeSimple\\SoapServer`: http://github.com/BeSimple/BeSimpleSoapServer
.. _`BeSimple\\SoapClient`: http://github.com/BeSimple/BeSimpleSoapClient
2011-08-07 11:34:00 +02:00
.. _`Download`: http://github.com/BeSimple/BeSimpleSoapBundle