Home  >  Article  >  Development Tools  >  How to install TP framework with Git

How to install TP framework with Git

藏色散人
藏色散人Original
2018-11-15 15:51:206686browse


This article mainly introduces how to install the Thinkphp framework using Git.

Regarding the installation of the TP framework, everyone must know that the more common way is Installing the TP framework through composer.

First of all, I will briefly introduce Git and TP framework to you.

Git is an open source distributed version control system that can handle everything from small to large projects quickly and efficiently. (Recommended: Git Installation Tutorial).

TP Framework is an open source PHP framework with MVC structure.

Now we will explain in detail how to install the TP framework through Git.

First we open the specified directory folder, right-click the following mark and click git bash here to open the Git command line mode.

How to install TP framework with Git

How to install TP framework with Git

Then enter a command and press Enter:

git clone https://github.com/top-think/think tp5

As shown below, clone and download the ThinkPHP5.1 application project warehouse and created a folder named tp5 in the www directory.

How to install TP framework with Git

Then cd to switch to the tp5 directory, and then clone the core framework warehouse (note that the directory name does not change)

The command is as follows:

git clone https://github.com/top-think/framework thinkphp

How to install TP framework with Git

At this point, we have completely downloaded and installed the TP framework.

Summary:

ThinkPHP5.1 is mainly divided into two warehouses: application and core, mainly including: Application projects, CoreFramework.

Installation through Git requires a two-step operation. First clone and download the application project repository, then switch to the corresponding directory, and then clone the core framework repository.

Note: If your access to github is slow, you can consider the domestic GIT warehouse .

This article is about the specific method of installing the TP framework through Git. It is very easy to understand. I hope it will be helpful to friends in need!


The above is the detailed content of How to install TP framework with Git. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:How to use GitNext article:How to use Git