【伸手党福利】thinkphp6.0.2 完整下载包——包含phpstudy配置composer下载tp6的全过程。

(个人建议还是使用composer进行下载,不过毕竟这丫在内网有时候抽风,所以分流一个zip包)
以备后用。
这个包是composer下载更新过之后的,不是官网上那个21k的小包。
TP6.0.2
安装包:
链接:https://pan.baidu.com/s/1TEA5dcR_YbMAPJwT57KEBg
提取码:h6bx
有能力的大佬可以支持一下csdn~ 多谢~

ThinkPHP6.0的环境要求如下:

PHP >= 7.1.0
6.0版本开始,必须通过Composer方式安装和更新,所以你无法通过Git下载安装。

付个人composer下载过程,
标准的:
1、在环境变量中设置php路径,
《【伸手党福利】thinkphp6.0.2 完整下载包——包含phpstudy配置composer下载tp6的全过程。》
2、下载composer:(个人执行了第一步和第三步)

个人成功案例:

下载composer.phar:
 
curl -sS https://getcomposer.org/installer | php

得到composer.phar和composer.json
然后将这两个文件复制到php目录下。
创建一个bat文件,输入

@php "%~dp0composer.phar" %*

内容后双击执行
执行成功后可以测试
composer --version
这时可以就反馈出版本号了,如果使用idea的话注意先重启ide。

再执行官网教程第三步
composer config -g repo.packagist composer https://packagist.phpcomposer.com

以及进行安装
composer create-project topthink/think tp6 6.0.*-dev

《【伸手党福利】thinkphp6.0.2 完整下载包——包含phpstudy配置composer下载tp6的全过程。》

以下为官网教程及参考内容

注意,第三步官网上可以设置为阿里云。
https://www.kancloud.cn/manual/thinkphp6_0/1037481

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
// 1. 下载composer.phar:
 
curl -sS https://getcomposer.org/installer | php
 
// 2. 将 composer 命令移动到bin目录,使之全局可用
 
mv composer.phar /usr/local/bin/composer
 
// 3. 设置中国全量镜像,提升访问速度
 
composer config -g repo.packagist composer https://packagist.phpcomposer.com
 
// 如果上面错误存在问题,请使用这个镜像地址
 
composer config -g repo.packagist composer https://packagist.laravel-china.org

3、下载thinkphp

composer create-project topthink/think tp6 6.0.*-dev

期间,它让我登录github获取token来下载,(点击链接,登录GitHub,然后创建token【默认的万能token即可】。)
《【伸手党福利】thinkphp6.0.2 完整下载包——包含phpstudy配置composer下载tp6的全过程。》
但是获取失败了。之后再次自动去dist下载,下载成功。

之后的

@php think service:discover
@php think vendor:publish

这两个是全自动的。

全部代码块

D:\phpstudy_pro\WWW\1029>composer create-project topthink/think tp6 6.0.*-dev
PHP Warning:  Module 'oci8' already loaded in Unknown on line 0

Warning: Module 'oci8' already loaded in Unknown on line 0
Creating a "topthink/think" project at "./tp6"
Installing topthink/think (6.0.x-dev e2d97584c4cfa04d56312f548a47412c81e2069c)
  - Installing topthink/think (6.0.x-dev e2d9758): Cloning e2d97584c4
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-3MUCERL+2020-06-04+1423
to retrieve a token. It will be stored in "C:/Users/admin/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
Token stored successfully.
    Failed to download topthink/think from source: Failed to clone https://github.com/top-think/think.git, git was not found, check that it is installed and in your PATH env.

'git' is not recognized as an internal or external command,
operable program or batch file.

    Now trying to download from dist
  - Installing topthink/think (6.0.x-dev e2d9758): Downloading (100%)
Created project in D:\phpstudy_pro\WWW\1029\tp6
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
  - Installing psr/container (1.0.0): Loading from cache
  - Installing topthink/think-helper (v3.1.4): Loading from cache
  - Installing psr/log (1.1.3): Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (100%)
  - Installing topthink/think-orm (v2.0.32): Downloading (100%)
  - Installing symfony/polyfill-php80 (v1.17.0): Downloading (100%)
  - Installing symfony/polyfill-php72 (v1.17.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.17.0): Downloading (100%)
  - Installing symfony/var-dumper (v4.4.9): Downloading (100%)
  - Installing opis/closure (3.5.3): Downloading (100%)
  - Installing psr/cache (1.0.1): Downloading (100%)
  - Installing league/flysystem (1.0.69): Downloading (100%)
  - Installing league/flysystem-cached-adapter (1.0.9): Downloading (100%)
  - Installing topthink/framework (v6.0.2): Downloading (100%)
  - Installing topthink/think-trace (v1.3): Downloading (100%)
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
symfony/var-dumper suggests installing symfony/console (To use the ServerDumpCommand and/or the bin/var-dump-server script)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
league/flysystem suggests installing ext-ftp (Allows you to use FTP server storage)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem-cached-adapter suggests installing ext-phpredis (Pure C implemented extension for PHP)
Writing lock file
Generating autoload files
> @php think service:discover

Warning: Module 'oci8' already loaded in Unknown on line 0
PHP Warning:  Module 'oci8' already loaded in Unknown on line 0
Succeed!
> @php think vendor:publish

Warning: Module 'oci8' already loaded in Unknown on line 0
Succeed!
PHP Warning:  Module 'oci8' already loaded in Unknown on line 0
5 packages you are using are looking for funding.
Use the `composer fund` command to find out more!


    原文作者:三个人工作室
    原文地址: https://blog.csdn.net/wwppp987/article/details/106546094
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞