goodshape/nette-amf

This package is abandoned and no longer maintained. No replacement package was suggested.

AMF protocol support to Nette Framework

dev-master 2014-03-26 15:09 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:30:13 UTC


README

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

Requirements

Installation

The best way to install the extension is using Composer:

$ composer require goodshape/nette-amf:@dev

After installation, enable the extension in config.neon:

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.

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.