Download the PHP package xianglin/first-composer without Composer

On this page you can find all versions of the php package xianglin/first-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package first-composer

first-composer

第一次尝试写自己的composer

1.在GitHub上创建一个自己的项目,然后拉取到本地

git clone https://github.com/XianglinLiu/first-composer.git

2.在对应的项目目录里面执行composer init

然后可看到生成了文件composer.json

3.在根目录新建文件夹src

mkdir src

4.新建测试文件.TestComposer.php 并声明命名空间

5.修改composer.json 新增autoload

6.执行tree 命令可以看到当前目录结构

7.执行composer install ,然后哦执行tree查看当前目录文件

8.进行测试,新建测试文件夹exp 新建测试文件index.php

php exp/index.php

输出:当时北京时间: 2020-05-26 12:27:43%

9.编辑文件.gitignore

10.提交代码到GitHub

11.检测compser包 packagist.org

12.检测正常,点击提交即可,提交成功将会跳转到已发布包的地址

13.打包命令,我是直接在GitHub上打包的。

14.测试一下 ,随便建一个文件夹执行命令

15.在vendor同级目录写一个测试文件index.php


All versions of first-composer with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xianglin/first-composer contains the following files

Loading the files please wait ...