albinvar/termux-webzone
Composer 安装命令:
composer create-project albinvar/termux-webzone
包简介
The Termux Webzone CLI App.
README 文档
README
_ _ _ ______
| | | | | | |___ /
| | | | ___| |__ / / ___ _ __ ___
| |/\| |/ _ \ '_ \ / / / _ \| '_ \ / _ \
\ /\ / __/ |_) | ./ /__| (_) | | | | __/
\/ \/ \___|_.__/ \_____/\___/|_| |_|\___|
Table of Contents
Introduction
Termux Webzone is a CLI application which provides a ton of features for web developers to build, run and test their php applications within the limits of android. The application is designed only to work with Termux.
Requirements
- php 7.3+
- curl
- termux
Installation
Basics
Basically, we need to update and upgrade our packages first. After that we will install php and setup permission to use storage.
pkg update -y pkg upgrade -y pkg install php wget -y termux-setup-storage
Using wget
Run the command and the script will take care of the rest.
wget https://raw.githubusercontent.com/albinvar/webzone-api/main/installer/installer.php -O - | php
Using curl
Run the command and the script will take care of the rest.
curl -s https://raw.githubusercontent.com/albinvar/webzone-api/main/installer/installer.php | php
Using composer
Remember, installing with composer requires each and every libraries should be downloaded first.
composer global require albinvar/termux-webzone
Manual installation
- Download the script from here.
- Execute the file using php.
php installer.php
- You can also install via composer by adding the flag
-cor--composer.
php installer.php --composer
Updation
You can update webzone simply using the inbuilt command.
webzone self-update
Or if you have installed via composer, use
composer global update albinvar/termux-webzone
Additionaly, old users needs to regenerate settings using the command webzone settings:init -f for any major updates.
Features
- Install PhpMyAdmin
- Create Wordpress site
- Create Development server
- Configure composer globally
- Create almost 4+ php framework projects.
- Create onion sites (tor)
- Portforwading through Ngrok
- Portforwading through Localhost.run
- Settings option to configure everything.
- More features coming soon...
Screenshots
| Installer | Webzone CLI |
|---|---|
Commands
The following commands are available in our tool. You can use the individual crafting routines which are similar to the Artisan commands.
basics Commands
- about
- manager
- settings
- self-update
Installable packages
- install:mysql
- install:pma
Create Commands
- create:codelighniter
- create:laravel
- create:nette
- create:symfony
- create:sapper
- create:zend
Installer Commands
- installer:laravel
- installer:symfony
- installer:fixer
- installer:phpstan
- installer:wordpress
Server Commands
- server:all
- server:dev
- server:pma
- server:mysql
- server:wordpress
Port-forwarding Commands
- share:localhost.run
- share:ngrok
- share:tor
Others
- composer:global
- project:list (Beta)
Available Commands
You can use this Commands specifically builded for each features.
Basic Commands
manager
$ webzone manager
Use : An interactive web interface for managing files inside termux storage built using php. Thanks to Ging-dev for this attractive feature.
options
-f | --force-> reinstall file manager forcefully if you have any errors.
settings
$ webzone settings
Use : Helps to configure ports and paths to be used for each commands.
self-update
$ webzone self-update
Use : Automatically updates webzone to latest version.
composer:global
$ webzone composer:global
Use : Configure composer globally.
Create Commands
create:codelighniter
$ webzone create:codelighniter blog
Use : Create a fresh new codelighniter project on default project root.
arguments
name-> Sets App/Project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:laravel
$ webzone create:laravel blog
Use : Create a fresh new laravel project on default project root.
arguments
name-> Sets App/Project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:symfony
$ webzone create:symfony blog --type api
Use : Create a fresh new Symfony project on default project root.
arguments
name-> Sets App/Project name.
options
--path(optional) -> Overides default app/project root to a custom root.--type(optional) -> Sets application type. By default useswebas type. Expectsweborapi.
create:zend
$ webzone create:zend blog
Use : Create a fresh new zend project on default project root.
arguments
name-> Sets App/Project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:nette
$ webzone create:nette blog
Use : Create a fresh new nette project on default project root.
arguments
name-> Sets App/Project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:lumen
$ webzone create:lumen blog
Use : Create a fresh new lumen project on default project root.
arguments
name-> Sets app/project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:cakephp
$ webzone create:cakephp blog
Use : Create a fresh new nette project on default project root.
arguments
name-> Sets app/project name.
options
--path(optional) -> Overides default app/project root to a custom root.
create:yii
$ webzone create:yii blog --type=basic
Use : Create a fresh new Yii project on default project root.
arguments
name-> Sets app/project name.
options
--path(optional) -> Overides default app/project root to a custom root.--type(optional) -> Sets application type. By default usesbasicas type. Expectsbasicoradvanced.
create:sapper
$ webzone create:sapper --name blog
Use : Create a fresh new sapper project on default project root.
options
--name-> Set's sapper project name.--path(optional) -> Overides default app/project root to a custom root.
Installable packages
install:mysql
$ webzone install:mysql
Use : Install MySql Database (mariadb).
install:pma
$ webzone install:pma
Use : Download and Install PhpMyAdmin latest version from server.
options
-fresh-> Remove existing PhpMyAdmin and install latest version from PhpMyAdmin website.
Installer Commands
installer:fixer
$ webzone installer:fixer
Use : Install and configure php-cs-fixer globally. You can use php-cs-fixer -h for more details.
options
--uninstall-> Remove php-cs-fixer from device.
installer:laravel
$ webzone installer:laravel
Use : Install laravel-installer latest version from packagist.
options
--uninstall-> Remove laravel-installer globally.
installer:phpstan
$ webzone installer:phpstan
Use : Install phpstan latest version from packagist.
options
--uninstall-> Remove phpstan globally.
installer:symfony
$ webzone installer:symfony
Use : Install Symfony CLI from server.
installer:wordpress
$ webzone installer:wordpress
Use : Install wordpress latest version from server.
options
-f|--force-> Reinstall wordpress from server.
Server Commands
server:all
$ webzone server:all
Use : Enable Localhost, Pma, Mysql just in one command (BETA).
server:dev
$ webzone server:dev
Use : Start localhost for development with the path set in settings. by default uses /sdcard/www.
options
--n-> Prevent opening browser after starting server.--port-> Overides default port (8080) set in settings.--path-> Overides default path (/sdcard/www) set in settings.
server:mysql
$ webzone server:mysql
Use : Start MySql database with the default port set in settings. by default uses /sdcard/www.
options
--port-> Overides default port (3306) set in settings.-s | --stop-> Kill all Mysql processes.
server:pma
$ webzone server:pma
Use : Start PhpMyAdmin on default port (8000) in settings.
options
--n-> Prevent opening browser after starting server.--port-> Overides default port (8000) set in settings.
server:wordpress
$ webzone server:wordpress
Use : Start wordpress site on default port (7070) in settings.
options
--n-> Prevent opening browser after starting server.--port-> Overides default port (7070) set in settings.
Port-forwarding Commands
share:localhost.run
$ webzone share:localhost.run
Use : Connect a tunnel to your web appplication running on port 8080 (default)
options
--port-> Overides default port (8080).
share:localhost.run
$ webzone share:localhost.run
Use : Connect a tunnel to your web appplication running on port 8080 (default)
options
--port-> Overides default port (8080).
share:localhost.run
$ webzone share:localhost.run
Use : Connect a tunnel to your web appplication running on port 8080 (default)
options
--port-> Overides default port (8080).
share:ngrok
$ webzone share:ngrok
Use : ngrok provides a real-time web UI where you can introspect all HTTP traffic running over your tunnels. Replay any request against your tunnel with one click.
options
--port-> Overides ngrok port setting.-s | --stop-> Kill all Ngrok processes.
share:tor
$ webzone share:tor
Use : Set up a website in the Onion/Tor network.
(NB: The developer of webzone will not be responsible for any misuses done by users.)
options
--reset-> Reset tor configuration.--port-> Set the port to be shared to tor Network
project:list (beta)
$ webzone project:list
Use : Show all directories inside project root folder.
Credits
Contributing
License
MIT. See LICENSE for more details.
albinvar/termux-webzone 适用场景与选型建议
albinvar/termux-webzone 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 379 次下载、GitHub Stars 达 37, 最近一次更新时间为 2022 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「cli」 「console」 「laravel」 「Laravel Zero」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 albinvar/termux-webzone 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 albinvar/termux-webzone 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 albinvar/termux-webzone 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
A table generator class for the PHP CLI.
Slim starter / Slim skeleton package to boost your development with Slim framework
统计信息
- 总下载量: 379
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-07