定制 faryar76/lrm 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

faryar76/lrm

Composer 安装命令:

composer require faryar76/lrm

包简介

laravel remote manager package

README 文档

README

alt text

by using this package , you can easily manage your project remotely (without ssh).

For example :

  1. You can run the database migration files on server without "ssh"
  2. You can move migration files from your local system to the server and run database migrate commands without ssh.
  3. You can upload your edited files into the server without entering your own management panel (cpanel or directadmin ...). also upload new files (or folders) without ssh .

Installation


# composer require faryar76/lrm

# php artisan vendor:publish --provider="Faryar76\LRM\LRMServiceProvider"

how to config for use?

The first thing you have to do complete the config file lrm.php in :
your_project_path\config\lrm.php

fill the host_path in lrm.php with your uploaded project path for example :

"host_path" => "http://your-website-domain.com/",

or in some sharing hosts

"host_path" => "http://your-website-domain.com/public/",
also you can set a password for make it more secure in lrm.php :
"password"  => hash('sha512',"type-your-password-here")

how to use?

upload file

for upload single file :
php artisan lrm:upload "path_to_file"

php artisan lrm:upload "app\Http\User.php"
for upload folder files :
php artisan lrm:upload "path_to_folder"

php artisan lrm:upload "app\Http"
for upload folder with sub folders :
php artisan lrm:upload "path_to_folder" --sub

php artisan lrm:upload "app\Http" --sub

run migrate files

just run Available files on server

php artisan lrm:migrate 		// will do php artisan migrate
php artisan lrm:migrate refresh 	// will do php artisan migrate:refresh
php artisan lrm:migrate rollback 	// will do php artisan migrate:rollback
...

upload local migrate files to server and run them

php artisan lrm:sync_migrate		// will do php artisan migrate
php artisan lrm:sync_migrate refresh 	// will do php artisan migrate:refresh
php artisan lrm:sync_migrate rollback 	// will do php artisan migrate:rollback
...

License MIT

Notice: old files will backup and move to "old_files" folder on your server 

统计信息

  • 总下载量: 276
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 46
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 46
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固