Home PHP Framework ThinkPHP Is thinkphp6 online?

Is thinkphp6 online?

Jun 12, 2019 pm 03:55 PM
php thinkphp6

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 downloads

So, of course, ThinkPHP6.0 (hereinafter referred to as TP6) cannot be downloaded from the official website

Where can I download it? Two ways

Composer and Git

Reference

Composer download and installation tutorial:

http://www.php. cn/code/30828.html

Git tutorial:

http://www.php.cn/tool/git/

The following are the most commonly used, It is also the officially recommended

Composer 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
Copy after login

Note:

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
Copy after login

4.2 Windows


Open https://www.phpcomposer.com/: Download the setup.exe installation program

4.3 Test

in the terminal Enter:

composer

command, if you see the command prompt message, it means the installation is successful

Is thinkphp6 online?##4.4 updated version

composer selfupdate  // 终端执行该命令将composer更新到最新版
Copy after login

5. TP6 framework source code download

(1) Open Composer official website:https://www.phpcomposer.com/

Open the installation package list, and a jump will occur. It will go to Is thinkphp6 online?https://packagist.org/

Enter the search keyword : topthink, the component packages related to the ThinkPHP framework will be listed below

After opening, you can see the version label and installation instructions of ThinkPHP6.0Is thinkphp6 online?

Is thinkphp6 online?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!
Copy after login
After the download is completed, open the project directory, for example: tp6, you can see the following directory Structure:

Is thinkphp6 online?



# 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 same
  • The 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 ,显示如下界面

    Is thinkphp6 online?

    恭喜, ThinkPHP6 框架已经安装成功~~

    相关参考推荐:
    1. ThinkPHP6.0版本正式发布,全面拥抱组件化开发趋势

    2. ThinkPHP6.0极速入门(视频教程)

    3. 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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

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

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

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

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

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,

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

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

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

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.

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

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 PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

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: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

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.

See all articles