承接 ipunkt/composer-about 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ipunkt/composer-about

Composer 安装命令:

composer require ipunkt/composer-about

包简介

Parses composer.lock and returns informations about the used packages

README 文档

README

Latest Stable Version Latest Unstable Version License Total Downloads

Parses composer.lock and returns informations about the used packages

Usage

Mainly developed for Laravel, but can still be used in all other Frameworks or Vanilla PHP applications.

  1. Add service provider to app.config

    'Ipunkt\ComposerAbout\ComposerAboutServiceProvider',

  2. Use it in your routes.php or Controller action

    /** @var \Ipunkt\ComposerAbout\Structure\ComposerStructure $composerAbout */

    $composerAbout = App::make('composer-about');

API

ComposerStructure::$hash

Hash of the current installed packages.

ComposerStructure::$packages

A Collection of Package object instances for the packages used.

ComposerStructure::$devpackages

A Collection of Package object instances for the dev packages used.

ComposerStructure::licenses()

An array of all unique licenses for all required packages. Perhaps for a summary of used licenses. Can be very useful, if you want to check, that there is a defined license that you do not want to have.

Package

For current methods please see Ipunkt\ComposerAbout\Structure\Data\Package.php

Package::getName()

Returns the name of the package.

Package::getVersion()

Returns the version of the package.

Package::getDescription()

Returns the description of the package.

Package::getAuthors()

Returns an array of alle Authors...each author has 'name' and 'email' set, if possible.

Package::getLicenses()

Returns the licenses of the package.

Package::getType()

Returns the type of the package. E.g. library

Package::getName()

Returns the name of the package.

统计信息

  • 总下载量: 10.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固