Client Server

What is Amfphp?

Amfphp is free and open source software, and an essential brick for the development of Applications that need to communicate with the Internet. Amfphp is used in projects that cover a wide spectrum, from games to business applications. The role of Amfphp is to provide a really simple way of connecting a client with a server.

Applications no longer run only on desktops, but must also be available on a variety of smartphones and tablets. It is becoming increasingly complex to code with the diversity of technologies used in these terminals. Amfphp is the best solution for creating accessible services to all terminals. Developers can focus on features unique to their projects, regardless of the communication between client and server.

Use Amfphp to enable your server side app with webservices

Test your services as you develop them with the Service Browser

Start your client development with a fully functional client project using the Client Generator

Test your server performance with the Profiler

For non-developers

You’re a designer, you’re a UX expert, or you’re a project manager

Here’s an example of what Amfphp can do for you: You have a web page, a tablet app and a smartphone app, and they all want to access some shared data, for example a list of emails. This list of emails is in the cloud, and you have a PHP developer whose job it is to make this list available to the apps and the webpage. Without Amfphp, there would be one code for the web page, another for the smartphone app, and maybe another for the tablet app. With Amfphp, there would only be one code!

Amfphp is aimed at developers. However if you fit one of the titles we just mentioned, you probably work with a developer. So the next time your developer tries to get rid of you with some techno babble involving words like “incompatible” and “protocol”, ask them: “Yes, but did you try with Amfphp?”.

For Developers

You don’t speak PHP?

You guessed, Amfphp is for PHP developers. But if you just need a bit of server side intelligence for your client, Amfphp is a good place to start.

How does it work?

Amfphp works as an entry point for your client. Your client sends a request to a PHP script on your server where Amfphp is loaded. It parses the request, loads the requested service, calls it, and returns the answer accordingly.

Code example. with, without Amfphp

You have a class that you want to call remotely. Here’s a simple one:

[sourcecode language=”php”]
class ExampleService {
public function returnOneParam($param){
return $param;

Without Amfphp, you would need a script to call it. Something like this:

[sourcecode language=”php”]
$param = $_GET["param"];
$exampleService = new ExampleService();
$ret = $exampleService->returnOneParam($param);
echo $ret;

With Amfphp, you don’t need this script, because it’s done for you. This case is fairly simple, but what if you have complex data, not just strings? What if you need to do this with multiple protocols? Your script would quickly get pretty complex and unmanageable. But with Amfphp you just write the service class, and Amfphp will make sure it gets called and that the client gets the return data in a language it understands.

• PHP 5
• Communication between PHP and your web and mobile applications
• Talk native flash/flex
• Talk native javascipt/html/ajax
• Easy install
• Plugins
o AMF, JSON, (XML, XML RPC, SOAP, RSS, custom formats are on the way)
o Security, user roles
o Logging
o Service Browser for debugging
o Charsets
o Client Code Generation
o Performance Profiler

• Simplest and most efficient
• Modular and light
• Short learning curve, many tutorials
• Free and open source
• BSD license

Get Help?

First stop is the users forum . Please read the guidelines before posting.

Site Map


  1. amfphp, zend php [client server] | code@butterflybone10-20-11
  2. Sebastian Kraft - fotoblog10-30-11
  3. AMF Configuration Files Demystified | Wappworks Studio11-03-11
  4. Anonymous01-04-12
  5. What are the software tools used to connect to (PHP) server side? | Flex Interview Questions01-17-12
  6. amfPHP 2.0.1 | Nuno Mira – Flash Developer02-06-12
  7. Codeigniter 2.0.3 with AMFPHP 2.0 | Nuno Mira – Flash Developer03-06-12
  8. Creative communities | Blog04-11-12
  9. muKit: An AS3 Framework I Have Been Working On | mu/ LOG04-22-12
  10. amfPHP « kxnote04-25-12
  11. Le projet Youfood, Inc. - Ludovic DANIEL07-01-12
  12. Gegevens deel waren toegankelijk via sql-injectie | Trending in Nederland07-02-12
  13. Gegevens deel waren toegankelijk via sql-injectie | Tech-nieuws07-02-12
  14. Marketingsite lekt gegevens 84.000 mensen | Tech-nieuws07-02-12
  15. Gurulabs | Secure FLEX Login System07-25-12
  16. Introducing Train Lord at Jozef Chúťka's blog11-02-12
  17. Flash 与 php 使用 amfphp | 一是二11-25-12
  18. Setting Up an Ubuntu Web & Flash Game Server | Machine Cognition12-13-12
  19. Baguette AMF Public Beta « Ariel Sommeria .com03-07-13
  20. Hello World with AmfPHP 2.1.1 and ActionScript Project - Foxdemon05-29-13
  21. Procrit iPad Application demo | Mr.Alston06-23-13
  22. Using FluorineFX with .NET 4 Framework | ChrisPyke.com09-28-13
  23. Edit a AMFObject serialize and post | Ask & Answers10-29-13
  24. Hacking AMF Objects « Ariel Sommeria .com10-31-13
  25. PHP <-> XML <-> Actionscript 3.0 Variablen - Flashforum01-17-14
  26. Amfphp的使用 » 非你网丶非你不可02-18-14
  27. Przyjemna komunikacja php – flash czyli AMFPHP | Adiasz blog03-13-14


This content
is outdated.

Discover Silex v2,
online website builder.

Sign up for Silex Labs news by email

SilexLabs community Tweets