Monday, August 20, 2012

PHP for Android project (PFA)

,

Introduction


PHP for Android project (PFA) aims to make PHP development in Android not only possible but also feasible providing tools and documentation.
We currently have an APK which provides PHP support to SL4A (PhpForAndroid.apk) and we're working in a manual.
Irontec is the company behind this project. About this project
FAQ (Frequently Asked Questions)

Getting help, getting involved


Google groups
Subscribe to PhpForAndroid discussion group
E-mail:
Visit this group
Issue tracker (problems and feature requests) : http://code.google.com/p/php-for-android/issues/list
Besides, a few wiki pages have a comment system at the bottom (this one e.g).

PhpForAndroid-APK

SL4A (Android Scripting Environment) is a Google-mantained project which “brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device”.
PhpForAndroid-APK provides PHP support to SL4A.
Screencasts

Requirements

min: Android OS 1.5 (phone or emulator)
Enable “Unknown Sources” under Application settings.

Install SL4A (Android Scripting Environment)

barcodeDon't have barcode reader? Click here.
Download SL4A
SL4A only comes with a shell interpreter by default.

Install PhpForAndroid.apk

barcodeDon't have barcode reader? Click here.
Download latest release (Releases page)
Once installed, run it and tap on “Install”.
The PHP binary and the scripts will become available to SL4A.
Now!, run SL4A. You should be able to see PHP demo scripts and they should work!.
Doesn't it work? Please, try uninstalling and installing again (this is alpha software).
Still not working? Fill this survey please: http://www.zoomerang.com/Survey/WEB22AXDHRY8L5

Getting started

The real time ways (no more install, no SDK, nothing required)

1. Add/Edit PHP scripts on your mobile

SL4A allows you to add or edit scripts on your mobile.

2. Use testnow.php

“allow_url_include” is On by default so you can include your code easily.
Include your own internet publicly available script. You'll find an already installed php script called “test.php”:
<?php
require_once("Android.php");
include("http://phpforandroid.net/files/testnow.php.txt"); // ".txt" extention required to prevent parsing
TODO Tell about remote, using SDK

How to distribute your PHP script as APK

Manual

We're working in a manual with all this information and more:
manual-en

Screencast

Check out our screencasts for easy installation on your terminals.

Problems?

Fill the following survey: http://www.zoomerang.com/Survey/WEB22AXDHRY8L5
or leave a comment with the following info: brand, model, android version and a brief text with the problem.
or join the pfa group and tell us.

0 comments to “ PHP for Android project (PFA)”

Post a Comment

 

Android Development Tutorials Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger Templates