Is thinkphp6 online?
TinkPHP6 is currently online. To download the source code, click here: http://www.php.cn/xiazai/code/5685
1. ThinkPHP Important Events
- ##On April 27, 2017, ThinkPHP5.1-beta.1 was released
- On December 31, 2017, ThinkPHP5.1.0 was released, marking a rapid entry into the iteration period
- On March 3, 2019, ThinkPHP5. 1 has been updated to the 35th version (5.1.35)
- On March 22, 2019, the dev development version of ThinkPHP5.2 was also released
Now let me tell you good news and bad news, which one should you listen to first?
Let me tell you the bad news first:There will never be ThinkPHP5.2 in the world again. La!
Good news:ThinkPHP5.2 has been officially renamed ThinkPHP6.0
2 . Core functions and main features
- Comprehensive support for the use of PHP7 strong type features
- Comprehensive support for almost all PSR development specifications
- Achieve multi-application support
- Comprehensively introduce event system alternative behavior
- New application service architecture
- The view and template engine are separated, and the project configuration is more flexible
- IDE assistant makes the editor smart prompt more accurate
- Some functions and class methods of the original version have been unified and streamlined
3. Environmental requirements and source code download
3.1 Environment requirements: PHP 7.1
2.2 Source code download
As we all know, starting from ThinkPHP5.1, The official website no longer provides framework source code downloadsSo, of course, ThinkPHP6.0 (hereinafter referred to as TP6) cannot be downloaded from the official websiteWhere can I download it? Two ways
Composer and Git
ReferenceComposer download and installation tutorial:http://www.php. cn/code/30828.html
Git tutorial:The following are the most commonly used, It is also the officially recommendedComposer method to download the framework source code
4. Composer download and installation
##4.1 Mac / Linux// 1. 下载composer.phar:
curl -sS https://getcomposer.org/installer | php
// 2. 将 composer 命令移动到bin目录,使之全局可用
mv composer.phar /usr/local/bin/composer
For MacOS 10.14, the user/local/bin folder does not exist and needs to be created manually // 3. 设置中国全量镜像,提升访问速度
composer config -g repo.packagist composer https://packagist.phpcomposer.com
// 如果上面错误存在问题,请使用这个镜像地址
composer config -g repo.packagist composer https://packagist.laravel-china.org
Open https://www.phpcomposer.com/: Download the setup.exe installation program
in the terminal Enter:
composercommand, if you see the command prompt message, it means the installation is successful
##4.4 updated version
composer selfupdate // 终端执行该命令将composer更新到最新版
(1) Open Composer official website:https://www.phpcomposer.com/
Open the installation package list, and a jump will occur. It will go to https://packagist.org/
After opening, you can see the version label and installation instructions of ThinkPHP6.0
The following is the detailed framework source code download process:
// 打开终端,执行指令: composer create-project topthink/think tp6 6.0.*-dev /** * 指令中各个参数的解释: * `create-project`: 是composer中的项目创建命令 * `topthink/think`: ThinkPHP的组件包 * `tp6`: 是当前的项目目录(如果没有创建, 该命令会自动创建的) * `6.0.*-dev`: 要下载的版本标签 */ // 以下是源码的下载中的提示信息 Installing topthink/think (6.0.x-dev 9ea8d9fd39a1aac440fd355cf8b4361130267bce) - Installing topthink/think (6.0.x-dev 9ea8d9f): Cloning 9ea8d9fd39 - Installing topthink/think (6.0.x-dev 9ea8d9f): Downloading (100%) Created project in tp Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 9 installs, 0 updates, 0 removals - Installing topthink/think-installer (v2.0.0): Downloading (100%) - Installing opis/closure (3.1.6): Downloading (100%) - Installing psr/simple-cache (1.0.1): Downloading (100%) - Installing psr/log (1.1.0): Downloading (100%) - Installing psr/container (1.0.0): Downloading (100%) - Installing psr/cache (1.0.1): Downloading (100%) - Installing topthink/framework (6.0.x-dev e9af162): Downloading (100%) - Installing topthink/think-template (v2.0.1): Downloading (100%) - Installing topthink/think-view (v1.0.5): Downloading (100%) Writing lock file Generating autoload files > @php think service:discover Succeed! > @php think vendor:publish Succeed!
# 6. Framework test
Here we use the framework’s built-in
think- command test
This command will start a local temporary Web server with the same function as
php -S localhost:8000 is the sameThe detailed steps are as follows:
// 1. 打开终端工具, 切换到当前的Web目录下面 // 2. 进入tp6项目目录 cd tp6 // 3. 创建本地服务器, 启动框架 php think run // 提示用户在本机的8000商品开启了一个Web服务 ThinkPHP Development server is started On <http://127.0.0.1:8000/> You can exit with `CTRL-C`
Copy after login根据提示打开浏览器, 在地址栏输入:
127.0.0.1:8000 或者 localhost:8000 ,显示如下界面
恭喜, ThinkPHP6 框架已经安装成功~~
相关参考推荐:
1. ThinkPHP6.0版本正式发布,全面拥抱组件化开发趋势The above is the detailed content of Is thinkphp6 online?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.
