Thinkphp目录结构
App/
ThinkPHP/ // 这个就是Thinkphp的源码,所以这个是不是没有必要上传到github上面呢?
index.php
First of all, the ThinkPHP directory source file is about 4M. Whether it is submitted or downloaded is very laborious...
So let’s think about this ThinkPHP directoryIsn’t it actually necessary to submit it?
But if I don’t submit the ThinkPHP directory source file, the only ones I clone will be app目录
and index.php文件
, which are obviously unusable. It can only be used unless you go to the official website to download ThinkPHP源文件(目录)
and put it in the clone project.
So what is the best way? To submit or not to submit?
In fact, I personally do not recommend uploading the thinkphp source code. You can write the dependent thinkphp version in the readme. Of course, you can also write a script, just like node_module in nodejs is not uploaded
Is there anything that cannot be submitted?
I am using a
Laravel
full-stack framework. Except for the vendor directory, which is for composer, the other files add up to more than 20M. Isn’t this the same push?Compared to Laravel’s 20M or more, what does your ThinkPHP’s 4M count?
The Laravel projects on github are all like this.