Download the PHP package smnandre/packapi without Composer

On this page you can find all versions of the php package smnandre/packapi. 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 packapi

  ![PHP Version](https://img.shields.io/badge/PHP-8.3+-7A8593?logoColor=7A8593&labelColor=161406)   ![CI](https://img.shields.io/github/actions/workflow/status/smnandre/packapi/CI.yaml?branch=main&label=Tests&labelColor=161406&color=7A8593)   ![Release](https://img.shields.io/github/v/release/smnandre/packapi?label=Stable&labelColor=161406&color=7A8593)   [![GitHub Sponsors](https://img.shields.io/github/sponsors/smnandre?logo=githubsponsors&logoColor=7A8593&label=%20Sponsor&labelColor=161406&color=7A8593)](https://github.com/sponsors/smnandre)   ![License](https://img.shields.io/github/license/smnandre/packapi?label=License&labelColor=161406&color=7A8593)

Get insights from Composer, NPM, Swift packages, GitHub, and more via a unified, strongly‑typed API.

Features

Quick Start

Installation

Basic Usage

The default preset configures Packagist, NPM, GitHub, jsDelivr, and OSV. PackageReport keeps every detailed result typed and adds a compact summary, completeness state, and common decision values.

Supported Package Types

Ecosystem Package Type Metadata Downloads Security Activity Content Bundle Size
Composer ComposerPackage Yes Yes Yes Yes Yes No
NPM NpmPackage Yes Yes Yes Yes Yes Yes
Swift SwiftPackage Via GitHub Via jsDelivr Via GitHub Via GitHub Via GitHub/jsDelivr No

GitHub providers can enrich any package that has a GitHub repository URL. They expose repository metadata, content, activity, and security advisories, but not registry download counts.

Usage Examples

Package Metadata Analysis

Download Statistics

Swift Package CDN Statistics

Swift packages are identified by their GitHub owner and repository. jsDelivr tracks CDN requests for tagged GitHub releases; these counts measure CDN use, not SwiftPM resolution downloads.

Security Advisory Scanning

Project Activity Analysis

Package Content Analysis

Bundle Size Analysis (NPM)

Configuration

HTTP/3 (QUIC)

PackApi supports HTTP/3 for improved performance:

Caching

Enable HTTP caching at the Symfony HTTP client level (e.g., CachingHttpClient with an HttpKernel Store). PackApi does not require a separate configuration object.

Logging

Pass a PSR‑3 logger to HttpClientFactory to log outgoing requests in examples and providers.

GitHub Authentication

For higher GitHub rate limits, provide a token:

Without an explicit token, the default builder reads GITHUB_TOKEN from the environment.

Architecture

PackApi uses a clean, extensible architecture:

Core Components

Provider Pattern

Each inspector accepts one or more providers from the corresponding factory. Providers are tried in order until one succeeds.

Testing

PackApi has comprehensive test coverage:

Examples

Run the sample scripts in examples/ to try PackApi quickly:

Usage:

Adding New Providers

Requirements

Optional


Contributing

Contributions are welcome! Please start by creating an issue to discuss your changes.


Credits

Created and maintained by Simon André.

[!TIP] This library is developed and maintained by a single developer in their free time.

To ensure continued maintenance and improvements, consider sponsoring development.


License

MIT License - see LICENSE file for details.


All versions of packapi with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^3.0
symfony/cache-contracts Version ^3.6
symfony/http-client-contracts Version ^3.6
symfony/yaml Version ^7.3 || ^8.0
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 smnandre/packapi contains the following files

Loading the files please wait ...