2017 © Pedro Peláez
 

library nette-amf

AMF protocol support to Nette Framework

image

goodshape/nette-amf

AMF protocol support to Nette Framework

  • Wednesday, March 26, 2014
  • by Quinix
  • Repository
  • 3 Watchers
  • 0 Stars
  • 190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Action Message Format Protocol for Nette Framework

This extension provides integration of Action Message Format protocol to Nette Framework. Messages encoding and decoding is based on AMFPHP library., (*1)

Requirements

Installation

The best way to install the extension is using Composer:, (*2)

$ composer require goodshape/nette-amf:@dev

After installation, enable the extension in config.neon:, (*3)

extensions:
    # add this line
    amf: Goodshape\Amf\DI\AmfExtension

After this, your application will accept AMF client call, decodes it and sends it to appropriate presenter., (*4)

Configuration options

  • requestNamespaces:
    • If you want to send typed objects from client, you need to specify namespace(s) where the delerializer should look for.
  • mappings
    • You can specify mapping between client service call and actual presenter name (if they differ).
    requestNamespaces:
        - Project\Remote\Request
    mappings:
        FooService/BarMethod: Foo:Bar

Features

  • Incoming packets are decoded and Nette\Application request is created with correct presenter and action.
  • Supports multiple message packet in one request
  • Decoding/encoding magic properties (Nette\Object support) experimental!

Missing features

  • AMF header support

This is early development release. We actively use this implementation, but we know the implementation is not perfect and lacks some features. Please feel free to contribute by creating issue or sending pull request., (*5)

The Versions

26/03 2014

dev-master

9999999-dev http://goodshape.cz

AMF protocol support to Nette Framework

  Sources   Download

Apache-2.0

The Requires

 

by Jan Langer