# Appium: Test Android application with PHP-library

**URL:** <https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040>\
**Category:** Issues/Bugs\
**Created:** [April 23, 2015, 10:40am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040 "2015-04-23T10:40:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshala](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@Harshala](https://discuss.appium.io/u/Harshala)\
**Post date:** [April 23, 2015, 10:40am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/1 "2015-04-23T10:40:05Z")

</div>

I am new to Appium. I want to test an android application using php library. Let me know if this is possible. I searched many video tutorials on internet, but either they use java-client library for android application or if they use php-client library then they test website. But I want to test Android application. Please help me out of it.

---

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [April 23, 2015, 10:42am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/2 "2015-04-23T10:42:30Z")

</div>

> **[appium/php-client](https://github.com/appium/php-client)**
>
> PHP client library for Appium. Contribute to appium/php-client development by creating an account on GitHub.

> **[appium-boneyard/sample-code](https://github.com/appium-boneyard/sample-code/tree/master/sample-code/examples/php)**
>
> appium sample code (dotnet, java, node, perl, php, python, ruby, etc.) - appium-boneyard/sample-code

---

<div class="post-metadata">

**Author:** ![Harshala](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@Harshala](https://discuss.appium.io/u/Harshala)\
**Post date:** [April 23, 2015, 10:51am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/3 "2015-04-23T10:51:07Z")

</div>

Thank you for the reply. But I still need to discuss on this. The first link that you have given shows an example where I can give path to the android application and then write the test case. Also I am not sure how it links but I have installed composer and phpunit on my machine. My question is now how can I run this php file, usually we run php script in browser, and for the applications in videos that I saw for java-client library are running through eclipse editor. So how will this php script run? Hope I am asking a valid question.

---

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [April 23, 2015, 10:57am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/4 "2015-04-23T10:57:14Z")

</div>

I have no idea 🙂 never user php with appium.

This might help you:

> [@Help running sample PHP-Appium project](https://discuss.appium.io/t/help-running-sample-php-appium-project/2325):
>
> I’m trying to run the sample php project from here [https://github.com/appium/sample-code](https://github.com/appium/sample-code) I have downloaded the appium app and can start and install the TestApp normally on my simulator. But when i run vendor/bin/phpunit SimpleTest.php i get this in my console: The Selenium Server is not active on host localhost at port 4723. I entered the url “[http://127.0.0.1:4723/wd/hub/status](http://127.0.0.1:4723/wd/hub/status)” as well as “[http://localhost:4723/wd/hub/status](http://localhost:4723/wd/hub/status)” directly in browser and get json result normally. Can anyone …

You can even try to talk to that user. Îf you are not bind to use PHP, I would recommend Java or ruby because their clients are kept more up to date

---

<div class="post-metadata">

**Author:** ![Harshala](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@Harshala](https://discuss.appium.io/u/Harshala)\
**Post date:** [April 23, 2015, 11:12am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/5 "2015-04-23T11:12:13Z")

</div>

Thanks again. But the source code shows IOS applications. I will try if it works with android app, but again is the same question, how will I be able to run php script.

---

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [April 23, 2015, 11:14am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/6 "2015-04-23T11:14:51Z")

</div>

Like other user did, you can try using phpunit framework

---

<div class="post-metadata">

**Author:** ![Harshala](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@Harshala](https://discuss.appium.io/u/Harshala)\
**Post date:** [April 23, 2015, 11:18am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/7 "2015-04-23T11:18:11Z")

</div>

you mean to say through command line?

---

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [April 23, 2015, 11:24am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/8 "2015-04-23T11:24:48Z")

</div>

Well, even the php run in browsers can be run in command line!

Either that, using CI (jenkins) to run commands or even using an IDE to run directly from IDE,…Your call. I guess there are also more frameworks available that you can use.

But thats your effort now…

---

<div class="post-metadata">

**Author:** ![Harshala](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@Harshala](https://discuss.appium.io/u/Harshala)\
**Post date:** [April 23, 2015, 11:40am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/9 "2015-04-23T11:40:45Z")

</div>

Okay will check that now. Thanks anyways.

---

<div class="post-metadata">

**Author:** ![prathya](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@prathya](https://discuss.appium.io/u/prathya)\
**Post date:** [June 30, 2016, 8:33am UTC](https://discuss.appium.io/t/appium-test-android-application-with-php-library/4040/10 "2016-06-30T08:33:17Z")

</div>

Hi, Sorry to hijack the thread, but I need some help and I think you can help me. I’m trying to test automate an Android application with appium PHP. I’m new to appium and tried searching for tutorials for PHP with Appium. I couldn’t find anything. I have no Idea where to I start. It will be great if you can help me out.
