php Composer以及Laravel框架使用了解
最近在找ftp的http替代方案的时候,发现laravel-filemanager项目的效果看起来不错,于是就尝试部署测试了一下,由于网络现状和源里面的包比较久的问题,实际使用发现过程还是有些麻烦的; 下面是过程中对php composer包管理器和laravel框架的一些查询的记录和一些命令;
在线安装Composer
https://gist.github.com/ozh/9751639
Windows 下离线安装 Composer
https://blog.trs.ai/windows-%E4%B8%8B%E7%A6%BB%E7%BA%BF%E5%AE%89%E8%A3%85-composer/
ubuntu环境离线安装Composer(https://mirrors.cloud.tencent.com/help/composer.html ,composer.phar github composer项目release页面也可以下到)
wget https://mirrors.cloud.tencent.com/composer/composer.phar
mv composer.phar /usr/local/bin/composer
为composer设置代理
export http_proxy="http://user:password@proxy.xxx.com:port"
export https_proxy="http://user:password@proxy.xxx.com:port"
export no_proxy="127.0.0.1,::1,localhost"
设置composer镜像,当然建议使用其他composer源,感觉下面这个源里的资源很久没同步了
composer config -g repo.packagist composer https://repo.huaweicloud.cn/repository/php/
php laravel框架
https://github.com/laravel/laravel
创建laravel工程
composer create-project --prefer-dist laravel/laravel laravel-filemanager
指定创建的工程laravel版本
composer create-project --prefer-dist laravel/laravel laravel-filemanager "5.5.*"
清理路由
php artisan route:clear
清理配置
php artisan config:clear
清理缓存
php artisan cache:clear
生成laravel应用密钥
php artisan key:generate
安装工程composer.json中的所以依赖
composer install
更新工程中的所有依赖
composer update
安装特定包到当前工程(unisharp/laravel-filemanager只是举个例子)
composer require unisharp/laravel-filemanager
安装特定包到全局(laravel/installer只是个例子)
composer global require laravel/installer
启动一个laravel工程
php artisan serve --host=地址 --port=端口
//php artisan vendor:publish --tag=lfm_public
//php artisan vendor:publish --tag=fm-assets
基于laravel框架开发的共享文件管理器
https://github.com/alexusmai/laravel-file-manager
laravel-file-manager安装教程
https://www.nicesnippets.com/blog/laravel-file-manager-tutorial-example
https://github.com/UniSharp/laravel-filemanager/blob/master/docs/customization.md
https://unisharp.github.io/laravel-filemanager/installation
Laravel 运行流程
https://blog.csdn.net/yangpit/article/details/86673526
php 框架 laravel 简介
https://blog.csdn.net/whatday/article/details/108297307
laravel5.1 -- Integrate FileManager and CKeditor into laravel
https://blog.csdn.net/weixin_34210740/article/details/89065483
创建并运行一个新的 Laravel 项目
https://cloud.tencent.com/developer/article/1720715
Build a Laravel 6 CRUD App with Authentication
https://medium.com/@auth0/build-a-laravel-6-crud-app-with-authentication-4410ebdbe2f
Composer 安装与使用
https://blog.csdn.net/h330531987/article/details/76184087
laravel csrf
https://stackoverflow.com/questions/45603815/how-to-fix-csrf-token-not-found-on-console
laravel cors设定
https://stackoverflow.com/questions/33076705/laravel-5-1-api-enable-cors
composer遇到Your configuration does not allow connection to http://的问题怎么解决
https://www.jianshu.com/p/3f94fd908856
Composer error with GitHub OAuth token
https://stackoverflow.com/questions/31766546/composer-error-with-github-oauth-token-on-fresh-laravel-homestead-provision/31766646
其他类似的基于laravel的文件管理项目:
https://github.com/monomichael/FileManager
- 点赞
- 收藏
- 关注作者
评论(0)