PHPackages                             rodchyn/amf-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rodchyn/amf-bundle

ActiveSymfony-bundle

rodchyn/amf-bundle
==================

Rodchyn AMFBundle

1462PHP

Since Jul 16Pushed 13y ago1 watchersCompare

[ Source](https://github.com/rodchyn/AMFBundle)[ Packagist](https://packagist.org/packages/rodchyn/amf-bundle)[ RSS](/packages/rodchyn-amf-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

======== Overview
=================

[](#overview)

This bundle allows you to use AMF with the Symfony2 Framework. Main features include:

- handle incoming AMF requests and routing it to the configured services.
- serializer to convert classes to virtual objects with the [JMSSerializerBundle](https://github.com/tecbot/JMSSerializerBundle)

Installation
------------

[](#installation)

Checkout a copy of the code::

```
git submodule add https://github.com/tecbot/AMFBundle.git src/Tecbot/AMFBundle

```

Then register the bundle with your kernel:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new JMS\AMFBundle\TecbotAMFBundle(),
    // ...
);

```

Make sure that you also register the namespaces with the autoloader:

```
// app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'Tecbot'              => __DIR__.'/../vendor/bundles',
    // ...
));

```

Note: The serializer needs the [JMSSerializerBundle](https://github.com/tecbot/JMSSerializerBundle).

Configuration
-------------

[](#configuration)

Below is the default configuration, you don't need to change it unless it doesn't suit your needs:

```
tecbot_amf:
    use_serialization: false

```

Usage
-----

[](#usage)

- All mapped services must be added to the folder "Amf" in your bundle (e.g Foo\\BarBundle\\Amf\\FooService).
- All public methods wich you want to access from Amf needs the "Action" suffix like controllers.

Configuring services and class mappings

```
tecbot_amf:
    services: # Services
        FooService: FooBarBundle:Foo # Map FooService (Actionscript alias) to Foo\BarBundle\Amf\Foo class
    mapping: # Class mapping. Map FooClassVO (Actionscript alias) to Foo\BarBundle\VO\FooClassVO
        FooClassVO: Foo\BarBundle\VO\FooClassVO

```

Add routing to the gateway controller

```
# path is "/gateway"
_tecbot_amf:
    resource: "@TecbotAMFBundle/Resources/config/routing.yml"

# or when you want a another path
amf:
    pattern: /amf
    defaults: { _controller: tecbot_amf.controller.gateway:gatewayAction }

```

Example App
-----------

[](#example-app)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/209245?v=4)[Yura Rodchyn](/maintainers/rodchyn)[@rodchyn](https://github.com/rodchyn)

---

Top Contributors

[![rodchyn](https://avatars.githubusercontent.com/u/209245?v=4)](https://github.com/rodchyn "rodchyn (5 commits)")[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (2 commits)")

### Embed Badge

![Health badge](/badges/rodchyn-amf-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rodchyn-amf-bundle/health.svg)](https://phpackages.com/packages/rodchyn-amf-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
