Download the PHP package kglogowski/client-server-communication without Composer
On this page you can find all versions of the php package kglogowski/client-server-communication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kglogowski/client-server-communication
More information about kglogowski/client-server-communication
Files in kglogowski/client-server-communication
Package client-server-communication
Short Description Library to communication between client and server
License MIT
Informations about the package client-server-communication
Installation
-
Run command:
composer require kglogowski/client-server-communication "@dev"
-
Add to Kernel: yaml fos_rest: routing_loader: default_format: json include_format: true param_fetcher_listener: force body_listener: true allowed_methods_listener: true view: view_response_listener: 'force' formats: json: true exception: enabled: true exception_controller: 'csc.rest.controller.exception:showAction' format_listener: rules:
- { path: '^/', priorities: ['json'], fallback_format: json, prefer_extension: false }
service:
view_handler: fos_rest.view_handler.default
yaml
Example pager
admin.invoice.pager: path: /invoices methods: [GET] defaults: _controller: "InspectorBundle:Invoice:pager" entityName: 'InspectorBundle\Entity\Invoice\Invoice' methodName: 'listInvoice' availableFilter: ['partner','created_at','payment_deadline_at','sold_at','delivery_at'] sortAvailable: ['partner','created_at','payment_deadline_at','sold_at','delivery_at']
Example post
admin.invoice.post: path: /invoices methods: [POST] defaults: _controller: "InspectorBundle:Invoice:post" entityName: 'InspectorBundle\Entity\Invoice\Invoice' validation: ['Post'] insertable: ['partner_id','campaigns','delivered_at','sold_at','description','name','vat','days_to_pay']
Example put
admin.invoice.put: path: /invoices/{id} methods: [PUT] requirements: id: '\d+' defaults: _controller: "InspectorBundle:Invoice:put" entityName: 'InspectorBundle\Entity\Invoice\Invoice' validation: ['Put'] updatable: ['delivered_at','sold_at','description','name','vat','days_to_pay']
Example custom processor
admin.invoice.bulk-pay: path: /invoices/bulk-pay methods: [PUT] defaults: _controller: "InspectorBundle:Invoice:bulkPay" entityName: 'InspectorBundle\Entity\Invoice\Invoice' requestProcessor: 'InspectorBundle\Server\Processor\Request\InvoicePayProcessor' #Service yaml
Example
security: encoders: AppBundle\Entity\User: id: csc.rest.security.encoder.password
providers: user_token: entity: class: AppBundle:User\User property: login user: id: app.rest.security.provider.token_user firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false user_token: pattern: ^/v1/auth/token$ provider: user_token guard: authenticators: - app.rest.security.authenticator.credential user: pattern: ^/v1(/|/auth/token/clear$) provider: user guard: authenticators: - app.rest.security.authenticator.token - app.rest.security.authenticator.sso entry_point: app.rest.security.authenticator.token main: pattern: ^/ anonymous: ~
yaml
Monolog
monolog: channels: ['raw_request', 'raw_response', 'auth'] use_microseconds: true
- { path: '^/', priorities: ['json'], fallback_format: json, prefer_extension: false }
service:
view_handler: fos_rest.view_handler.default
yaml
All versions of client-server-communication with dependencies
ext-pdo Version *
php Version >=7.2.0
symfony/symfony Version ^4.2
symfony/framework-bundle Version ^4.2
symfony/security-bundle Version ^4.2
symfony/translation Version ^4.2
symfony/validator Version ^4.2
symfony/monolog-bundle Version ^3.3
friendsofsymfony/rest-bundle Version 2.5.0
doctrine/orm Version ^2.6.3
doctrine/doctrine-bundle Version ^1.11.1
doctrine/doctrine-cache-bundle Version ^1.3
doctrine/doctrine-migrations-bundle Version ^1.3
jms/serializer Version ^3.0
jms/serializer-bundle Version ^3.3
guzzlehttp/guzzle Version ^6.3
lcobucci/jwt Version ^3.2