★ wanayoo — archive 1999 https://github.com/AnandPilania/php-android-cliNouvelle recherche | Portail wanayoo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PHP Android CLI

PHP Android CLI create/generate Scaffold Android-Studio Gradle project with:

  • Modules (application/library)
  • Variants with Dimensions
  • Scaffold project & application/library level build.gradle with package name & dimensions & variants
  • Manage settings.gradle
  • Generate manifest file & res with default icon, color, style & values
  • ...

New Features!

  • ...

You can also:

  • set targetSdk
  • set buildToolsVersion
  • set minSdk & maxSdk

Tech

PHP Android CLI uses:

And of course PHP Android CLI itself is open source with a public repository on GitHub.

Installation

PHP Android CLI requires PHP v5+ to run.

Just download the phpandroid and start scaffolding.

$ phpandroid create <PROJECT_NAME> <PACKAGE> [OPTIONS]

USAGE

Basic use

Create HelloWorld project with com.example.helloworld package name:

phpandroid create HelloWorld com.example.helloworld

Create Modules along with App

Create HelloWorld project with sdk library & admin application

phpandroid create HelloWorld com.example.helloworld --modules=sdk:library,admin

Create productVariants: free & paid variant

phpandroid create HelloWorld com.example.helloworld --variants=free:type,paid:type

here type is the dimension

Options

Default

PHP Android CLI is currently using default values for latest Android. These are:

OPTIONS Usage DEFAULT
--compileSdk/-cs set targetSdk 29
--buildTools/-bt set buildToolsVersion 29.0.1
--minSdk/-ms set minSdk 16
--targetSdk/-ts set maxSdk 29
--androidX/-x Enable/Disable AndroidX true
--jetifier/-j Enable/Disable Jetifier true

Use --force to re-write existing project.

Todos

  • Create/Scaffold activity
  • Create/Scaffold variants source
  • ...

License

MIT

Free Software, Hell Yeah!

About

Create Android-Studio gradle project from CLI with PHP... (created for personal use)

Topics

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.