From c14dfd7dd80c940092a35fd43c10274a244afc82 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 29 Feb 2016 16:37:17 +0100 Subject: [PATCH] Add integrations, add symfony bundle documentation --- _static/custom.css | 3 + assets/img/debug-toolbar.png | Bin 0 -> 7160 bytes conf.py | 1 + httplug/application-developers.rst | 11 -- httplug/introduction.rst | 4 +- httplug/tutorial.rst | 6 + httplug/usage.rst | 2 +- index.rst | 2 + integrations/index.rst | 9 + integrations/symfony-bundle.rst | 198 ++++++++++++++++++++ integrations/symfony-full-configuration.rst | 76 ++++++++ spelling_word_list.txt | 3 +- 12 files changed, 300 insertions(+), 15 deletions(-) create mode 100644 _static/custom.css create mode 100644 assets/img/debug-toolbar.png delete mode 100644 httplug/application-developers.rst create mode 100644 integrations/index.rst create mode 100644 integrations/symfony-bundle.rst create mode 100644 integrations/symfony-full-configuration.rst diff --git a/_static/custom.css b/_static/custom.css new file mode 100644 index 0000000..4c4a0d4 --- /dev/null +++ b/_static/custom.css @@ -0,0 +1,3 @@ +.row-even .line-block, .row-odd .line-block { + margin-left: 0; +} diff --git a/assets/img/debug-toolbar.png b/assets/img/debug-toolbar.png new file mode 100644 index 0000000000000000000000000000000000000000..522a81bf095def429198f9b8564285858b456c7a GIT binary patch literal 7160 zcma)hWl$VIllCsQ5Ma^ZPJ#pr?v}+}g9Hffu(-QB!QEXJNN|EK1VSJzP6)vkPjGjR zdw*QjS66lQ{TS=&>gk@D>h5PcRzpo5_XWiZ004lis34;S002SHb5~4^=l)lfHR5@| za#1jF2LP~%{<{GIx%p(zT+wzAh=ztO)C1~n3w5DWgh1$A+@RKWj#dDG&u>@~xAF%~ zvZx{=3tb#Cr6w=~h+1DKHG)uOYrbE!)jm9v_{9qJz=4}4?d3$7SW za1ydOoDOqfl@2p3-9^-hPkX82=sW;%9K?mzQj<=ER?B~2O-gFX`SDYr69(2vim*h^ zd&uke?=x>KOb!VE-kRF1Rr$Vw*{hD!g+cniY4c_p&iZt>z`E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#0fXu#m%P)48QLdCP4PvcqiT!9HYiSL3_nf6eIuvX=X8SFH<|7tQS+_E96EV!z8SGzgBN5*J)0s9tKHkJ-lO!Gk4@_}_j9DS)IZOw8IXoIxM#7x(6i|9^ zkny6wC!;tJX3IPRslVWhc<-lgrX)}I9dOHGzu=U0v|Gn@TwnY~uk(7^?vI-5RsL?$ z!VqqH&Ne>vpH}M;4GBHv_5C{{&Pz6O43$ssSN z0Dcc_wtv}P2wFD5+(=*#X+Vg_66W?~W(U$e5ZBGFaz1US0+HfDbAHxzv9 z>dv@7*;fKQUe0NntaL+>=}5z4G{#r1xl&%WSUN8=ZuZ7=Gi0jXeOjVH;cgI_&JBll zM+Zt1mN-ZhZvb>Z=Ca;?8*_Y+rQ`T3%7nk06 zr@PSj(cqeddnqHShp$T`2eaZYJd)<8id)Tj+||8#cDZuijh$uI^(LhxvN) zf)VHTg6kr$OZ1fysH};z#`Wp=Iu+&`E7xBUe6(_YS!x_Uo>28jzjd?Bpw2V za#g7nyto@3C+D?3{=wFW2A6zJ~)Sl+qIuuUIHS1|OcB+~a?h zBoRtpOEPu5rW1u;uD6|xvX^o5K&Qtx%m^(a`A>1=e?j*D5Gv`W+0NucjEYE~zcJC) e3s0Uv0KdzICJfVo*yj=vKv7mrrs17w*na_i2%eh& literal 0 HcmV?d00001 diff --git a/conf.py b/conf.py index 2be1dd0..fb2611f 100644 --- a/conf.py +++ b/conf.py @@ -155,6 +155,7 @@ html_static_path = ['_static'] def setup(app): + app.add_stylesheet('custom.css') app.add_stylesheet('highlight.css') # Add any extra paths that contain custom files (such as robots.txt or diff --git a/httplug/application-developers.rst b/httplug/application-developers.rst deleted file mode 100644 index 06d4345..0000000 --- a/httplug/application-developers.rst +++ /dev/null @@ -1,11 +0,0 @@ -HTTPlug for application developers -================================== - -Framework integration ---------------------- - -HTTPlug can be used in any PHP based project. Nonetheless, we provide -integration for some popular frameworks: - -- HttplugBundle_: integration with the Symfony framework. - diff --git a/httplug/introduction.rst b/httplug/introduction.rst index 9708fb3..2ffcb35 100644 --- a/httplug/introduction.rst +++ b/httplug/introduction.rst @@ -44,8 +44,8 @@ Usage There are two main use cases for HTTPlug: -* usage in an application that executes HTTP requests (see :doc:`application-developers`). -* usage in a reusable package that executes HTTP requests (see :doc:`library-developers`). +* Usage in an application that executes HTTP requests (see :doc:`tutorial` and :doc:`../integrations/index`); +* Usage in a reusable package that executes HTTP requests (see :doc:`library-developers`). History ------- diff --git a/httplug/tutorial.rst b/httplug/tutorial.rst index 78f76ed..98b41a9 100644 --- a/httplug/tutorial.rst +++ b/httplug/tutorial.rst @@ -11,6 +11,12 @@ take into account when building a reusable package. We use Composer_ for dependency management. Install it if you don't have it yet. +.. note:: + + If you are using a framework, check the :doc:`../integrations/index` to see if + there is an integration available. Framework integrations will simplify the way + you set up clients, letting you focus on handling the requests. + Setting up the project ---------------------- diff --git a/httplug/usage.rst b/httplug/usage.rst index 1fe3f94..d4197f6 100644 --- a/httplug/usage.rst +++ b/httplug/usage.rst @@ -7,6 +7,6 @@ HTTPlug is relevant for three groups of users: :maxdepth: 1 Library users - Application developers + Application developers Library developers diff --git a/index.rst b/index.rst index 7051bc3..d7f0c37 100644 --- a/index.rst +++ b/index.rst @@ -71,6 +71,8 @@ for discussion around a future HTTP client PSR. clients plugins/index + integrations/index + .. toctree:: :hidden: :caption: Components diff --git a/integrations/index.rst b/integrations/index.rst new file mode 100644 index 0000000..e7032ca --- /dev/null +++ b/integrations/index.rst @@ -0,0 +1,9 @@ +Framework Integrations +====================== + +HTTPlug provides the following framework integrations: + +.. toctree:: + + symfony-bundle + symfony-full-configuration diff --git a/integrations/symfony-bundle.rst b/integrations/symfony-bundle.rst new file mode 100644 index 0000000..2196412 --- /dev/null +++ b/integrations/symfony-bundle.rst @@ -0,0 +1,198 @@ +Symfony Bundle +============== + +This bundle integrate HTTPlug with the Symfony framework. The bundle helps to register services for all your clients and makes sure all the configuration is in one place. The bundle also feature a toolbar plugin with information about your requests. + +This guide explains how to configure HTTPlug in the Symfony framework. See the :doc:`../httplug/tutorial` for examples how to use HTTPlug in general. + +Installation +```````````` + +Install the HTTPlug bundle with composer and enable it in your AppKernel.php. + +.. code-block:: bash + + $ composer require php-http/httplug-bundle + +.. code-block:: php + + public function registerBundles() + { + $bundles = array( + // ... + new Http\HttplugBundle\HttplugBundle(), + ); + } + +You will find all available configuration at the :doc:`full configuration ` page. + +Usage +````` + +.. code-block:: yaml + + httplug: + plugins: + logger: ~ + clients: + acme: + factory: 'httplug.factory.guzzle6' + plugins: ['httplug.plugin.logger'] + config: + verify: false + timeout: 2 + +.. code-block:: php + + $request = $this->container->get('httplug.message_factory')->createRequest('GET', 'http://example.com'); + $response = $this->container->get('httplug.client.acme')->sendRequest($request); + + +Web Debug Toolbar +````````````````` +.. image:: /assets/img/debug-toolbar.png + :align: right + :width: 120px + +When using a client configured with ``HttplugBundle``, you will get debug information in the web debug toolbar. It will tell you how many request were made and how many of those that were successful or not. It will also show you detailed information about each request. + +Discovery of Factory Classes +```````````````````````````` + +If you want the bundle to automatically find usable factory classes, install and enable ``puli/symfony-bundle``. If you do not want use auto discovery, you need to specify all the factory classes for you client. The following example show how you configure factory classes using Guzzle: + +.. code-block:: yaml + + httplug: + classes: + client: Http\Adapter\Guzzle6\Client + message_factory: Http\Message\MessageFactory\GuzzleMessageFactory + uri_factory: Http\Message\UriFactory\GuzzleUriFactory + stream_factory: Http\Message\StreamFactory\GuzzleStreamFactory + + + +Configure Clients +````````````````` + +You can configure your clients with default options. These default values will be specific to you client you are using. The clients are later registered as services. + +.. code-block:: yaml + + httplug: + clients: + my_guzzle5: + factory: 'httplug.factory.guzzle5' + config: + # These options are given to Guzzle without validation. + defaults: + verify_ssl: false + timeout: 4 + acme: + factory: 'httplug.factory.curl' + config: + 78: 4 #CURLOPT_CONNECTTIMEOUT + +.. code-block:: php + + $httpClient = $this->container->get('httplug.client.my_guzzle5'); + $httpClient = $this->container->get('httplug.client.curl'); + + // will be the same as ``httplug.client.my_guzzle5`` + $httpClient = $this->container->get('httplug.client'); + +The bundle has client factory services that you can use to build your client. If you need a very custom made client you could create your own factory service implementing ``Http\HttplugBudle\ClientFactory\ClientFactory``. The built-in services are: + +* ``httplug.factory.curl`` +* ``httplug.factory.guzzle5`` +* ``httplug.factory.guzzle6`` +* ``httplug.factory.react`` +* ``httplug.factory.socket`` + +Plugins +``````` + +You can configure the clients with plugins. You can choose to use a built in plugin in the ``php-http/plugins`` package or provide a plugin of your own. The order of the specified plugin does matter. + +.. code-block:: yaml + + // services.yml + acme_plugin: + class: Acme\Plugin\MyCustomPlugin + arguments: ["%some_parameter%"] + +.. code-block:: yaml + + // config.yml + httplug: + plugins: + cache: + cache_pool: 'my_cache_pool' + clients: + acme: + factory: 'httplug.factory.guzzle6' + plugins: ['acme_plugin', 'httplug.plugin.cache', 'httplug.plugin.retry'] + + +Authentication +`````````````` + +You can configure a client with authentication. Valid authentication types are ``basic``, ``bearer``, ``service`` and ``wsse``. See more examples at the :doc:`full configuration `. + +.. code-block:: yaml + + // config.yml + httplug: + plugins: + authentication: + my_wsse: + type: 'wsse' + username: 'my_username' + password: 'p4ssw0rd' + + clients: + acme: + factory: 'httplug.factory.guzzle6' + plugins: ['httplug.plugin.authentication.my_wsse'] + + +List of Services +```````````````` + ++-------------------------------------+-------------------------------------------------------------------------+ +| Service id | Description | ++=====================================+=========================================================================+ +| ``httplug.message_factory`` | Service* that provides the `Http\Message\MessageFactory` | ++-------------------------------------+-------------------------------------------------------------------------+ +| ``httplug.uri_factory`` | Service* that provides the `Http\Message\UriFactory` | ++-------------------------------------+-------------------------------------------------------------------------+ +| ``httplug.stream_factory`` | Service* that provides the `Http\Message\StreamFactory` | ++-------------------------------------+-------------------------------------------------------------------------+ +| ``httplug.client.[name]`` | There is one service per named client. | ++-------------------------------------+-------------------------------------------------------------------------+ +| ``httplug.client`` | | If there is a client named "default", this service is an alias to | +| | | that client, otherwise it is an alias to the first client configured. | ++-------------------------------------+-------------------------------------------------------------------------+ +| | ``httplug.plugin.content_length`` | | These are plugins that are enabled by default. | +| | ``httplug.plugin.decoder`` | | These services are private and should only be used to configure | +| | ``httplug.plugin.error`` | | clients or other services. | +| | ``httplug.plugin.logger`` | | +| | ``httplug.plugin.redirect`` | | +| | ``httplug.plugin.retry`` | | +| | ``httplug.plugin.stopwatch`` | | ++-------------------------------------+-------------------------------------------------------------------------+ +| | ``httplug.plugin.cache`` | | These are plugins that are disabled by default and only get | +| | ``httplug.plugin.cookie`` | | activated when configured. | +| | ``httplug.plugin.history`` | | These services are private and should only be used to configure | +| | | clients or other services. | ++-------------------------------------+-------------------------------------------------------------------------+ + +\* *These services are always an alias to another service. You can specify your own service or leave the default, which is the same name with `.default` appended.* + + +Usage for Reusable Bundles +`````````````````````````` + +Rather than code against specific HTTP clients, you want to use the HTTPlug ``Client`` interface. To avoid building your own infrastructure to define services for the client, simply ``require: php-http/httplug-bundle`` in your bundles ``composer.json``. You SHOULD provide a configuration option to specify the which HTTP client service to use for each of your services. This option should default to ``httplug.client``. This way, the default case needs no additional configuration for your users, but they have the option of using specific clients with each of your services. + +The only steps they need is ``require`` one of the adapter implementations in their projects ``composer.json`` and instantiating the ``HttplugBundle`` in their kernel. diff --git a/integrations/symfony-full-configuration.rst b/integrations/symfony-full-configuration.rst new file mode 100644 index 0000000..5f2c9f3 --- /dev/null +++ b/integrations/symfony-full-configuration.rst @@ -0,0 +1,76 @@ +Full configuration +================== + +This page shows an example of all configuration values provided by the bundle. + +.. code-block:: yaml + + // config.yml + httplug: + main_alias: + client: httplug.client.default + message_factory: httplug.message_factory.default + uri_factory: httplug.uri_factory.default + stream_factory: httplug.stream_factory.default + classes: + # uses discovery if not specified + client: ~ + message_factory: ~ + uri_factory: ~ + stream_factory: ~ + + plugins: + authentication: + my_basic: + type: 'basic' + username: 'my_username' + password: 'p4ssw0rd' + my_wsse: + type: 'wsse' + username: 'my_username' + password: 'p4ssw0rd' + my_bearer: + type: 'bearer' + token: 'authentication_token_hash' + my_service: + type: 'service' + service: 'my_authentication_service' + cache: + enabled: true + cache_pool: 'my_cache_pool' + stream_factory: 'httplug.stream_factory' + config: + default_ttl: 3600 + respect_cache_headers: true + cookie: + enabled: true + cookie_jar: my_cookie_jar + decoder: + enabled: true + use_content_encoding: true + history: + enabled: true + journal: my_journal + logger: + enabled: true + logger: 'logger' + formatter: null + redirect: + enabled: true + preserve_header: true + use_default_for_multiple: true + retry: + enabled: true + retry: 1 + stopwatch: + enabled: true + stopwatch: 'debug.stopwatch' + clients: + acme: + factory: 'httplug.factory.guzzle6' + plugins: ['httplug.plugin.authentication.my_wsse', 'httplug.plugin.cache', 'httplug.plugin.retry'] + config: + verify: false + timeout: 2 + # more options to the guzzle 6 constructor + diff --git a/spelling_word_list.txt b/spelling_word_list.txt index 8ca7e1c..f6fc044 100644 --- a/spelling_word_list.txt +++ b/spelling_word_list.txt @@ -17,13 +17,14 @@ plugins matchers param params +Puli rebase Semver sexualized sublicense sync +toolbar username whitelist wiki workflow -Puli