Creative communities platform

Communities platform powered by Silex Labs, dedicated to the creation, support and communication of open source projects

amfPHP

Client Server

What is amfPHP?

amfPHP is free and open source software, and an essential brick for the development of Web Applications. amfPHP is used in projects that cover a wide spectrum, from games to business applications. The role of amfPHP is to make connecting an application running in the browser with a server in the cloud as simple as possible.

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

• Easily expose methods to client applications of all types (desktop, web, js, as, c++)
• One code base for all the standard rpc formats (xml, json, amf)
• Expose your APIs

Add it to your framework
Use amfPHP to expose your framework ‘s data and functionality. AmfPHP is easy to integrate within a larger PHP code base.
• Well documented api
• Functions for serialisation/deserialisation of all data types including custom classes from php to actionscript and javascript, in amf, xml, json
• Authentication and user roles

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:

class MirrorService {

public function returnOneParam($param){
 return $param;
}

}

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

$param = $_GET["param"];
 $mirrorService = new MirrorService();
 $ret = $mirrorService->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.

Characteristics
• PHP 5
• Communication between PHP and your web applications
• Talk native flash/flex as2/3
• Talk native javascipt/html/ajax
• Easy install
• Plugins
o 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

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

Site Map

0 Responses to amfPHP