承接 vanbrabantf/npm-stat-fetcher 相关项目开发

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

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

vanbrabantf/npm-stat-fetcher

Composer 安装命令:

composer require vanbrabantf/npm-stat-fetcher

包简介

A small package that returns some common stats about npm packages

README 文档

README

Scrutinizer Code Quality Build Status

Purpose

A simple package written in PHP that fetches statistics from NPM. It's mostly a wrapper around the NPM-API.

Installation

Installation can be done easily through composer.

composer require vanbrabantf/npm-stat-fetcher

Usage

tl;dr: Usage of the package is pretty simple, just pass the name of the npm package you would like to get the stats off to the methods inside of the StatFetcher class.

You can import the class like this:

$statFetcher = new Vanbrabantf\NpmStatFetcher\StatFetcher();

Available methods

Will return the downloads of the previous day:

$statFetcher->getDownloadsLastDay('jquery');

Will return the downloads of the previous week:

$statFetcher->getDownloadsLastWeek('jquery');

Will return the downloads of the previous month:

$statFetcher->getDownloadsLastMonth('jquery');

Will return the downloads of the previous year:

$statFetcher->getDownloadsLastYear('jquery');

Will return the total downloads:

$statFetcher->getDownloads('jquery');

Will return the total downloads between 2 dates:

$start = new DateTime('1989-12-13');
$end = new DateTime('1988-11-07');
$statFetcher->getDownloadsBetweenDates('jquery', $start, $end);

What it will return

The methods will return DownloadStatistics objects. These are value objects that have values for the dates, download counts and package information.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固