Download the PHP package private-packagist/api-client without Composer

On this page you can find all versions of the php package private-packagist/api-client. 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 api-client

Private Packagist API Client

Table of Contents

Requirements

Install

Via Composer:

Why do you need to require guzzlehttp/guzzle? We are decoupled from any HTTP messaging client with help by HTTPlug, so you can pick an HTTP client of your choice, guzzle is merely a recommendation.

Basic usage of private-packagist/api-client client

From $client object, you can access the full Private Packagist API.

Documentation

Full documentation can be found in the Private Packagist documentation.

Organization

Trigger a full synchronization

Returns an array of created jobs. One for every synchronization.

Team

The permissions available for a team are:

The permissions model can also be constructed via flags:

Or from the permissions of an existing team:

List an organization's teams

Returns an array of teams.

Create a New Team

Creates a team and sets permissions applied to team members. Returns the newly-created team.

Show a Team

Returns the team including all its members.

Edit a Team

Edits a team's name and permissions to be applied to team members. Returns the updated team.

Grant All Package Access

Granting a team access to all packages will give this team access to all current and future organization packages which do not have their permissions synchronized.

Revoke All Package Access

Revoking a team's access to all packages will not remove access to packages the team can currently access, but will prevent access to new packages and allow revoking individual package access.

Delete a Team

Add Member to Team (by User ID)

Returns the team the user was added to.

Remove Member from Team

List all private packages a team has access to

Returns an array of packages.

Grant a team access to a list of private packages

You pass an array of packages to give access to. The values of the array can be either package ID or package name.

Returns an array of packages.

Remove access for a package from a team

You can use the package ID or package name as a reference.

Authentication Tokens

List an organization's team authentication tokens

Returns an array of team tokens.

Create a new team authentication token

Returns the created token.

Delete a team authentication token

Regenerate a team authentication token

Returns the regenerated token.

Customer

List an organization's customers

Returns an array of customers.

Show a customer

Returns a single customer.

Create a customer

Returns the customer.

Edit a customer

Returns the customer.

Delete a customer

Enable a customer

Disable a customer

List a customer's packages

Returns an array of customer packages.

Show a customer's package

Returns a customer's package, including the versions that the customer has been granted access to.

Grant a customer access to a package or edit the limitations

Returns an array of all added or edited customer packages.

Revoke access to a package from a customer

You can reference the package by its ID or name.

Regenerate a customer's Composer repository token

Returns the edited Composer repository.

List a customer's vendor bundles

Returns an array of customer vendor bundles.

Grant a customer access to a vendor bundle or edit the limitations

Returns the added or edited customer vendor bundle.

Revoke access to a vendor bundle from a customer

Vendor Bundle

List an organization's vendor bundles

Returns an array of vendor bundles.

Show a vendor bundle

Returns a single vendor bundle.

Create a vendor bundle

Returns the vendor bundle.

Edit a customer

Returns the vendor bundle.

Delete a vendor bundle

List packages in a vendor bundle

Returns an array of vendor bundle packages.

Add one or more packages to a vendor bundle or edit their limitations

Returns an array of all added or edited customer packages.

Remove a package from a vendor bundle

You can reference the package by its ID or name.

Subrepository

List an organization's subrepositories

Returns an array of subrepositories.

Show a subrepository

Returns a single subrepository.

Create a subrepository

Returns the subrepository.

Delete a subrepository

List a subrepository's teams

Returns an array of subrepositories teams.

Add a team to a subrepository or edit the permission

Returns an array of added subrepository teams.

Remove a team from a subrepository

List a subrepository's packages

Returns an array of subrepositories packages.

Show a subrepository package

You can reference a package by its name or ID.

Returns the package.

Create a vcs package in a subrepository

Returns a new job.

Create a vcs package with credentials in a subrepository

Returns a new job.

Create a custom package in a subrepository

Returns a new job.

Create a custom package with credentials in a subrepository

Returns a new job.

Edit a vcs package in a subrepository in a subrepository

Returns a new job.

Edit a custom package in a subrepository

Returns a new job.

Delete a package from a subrepository

List all dependents of a subrepository package

Returns a list of packages.

List a subrepository's authentication tokens

Returns an array of authentication tokens.

Create a subrepository authentication token

Returns the authentication token.

Delete a subrepository authentication token

Regenerate a subrepository authentication token

Returns the authentication token.

List a subrepository's mirrored repositories

Returns an array of mirrored repositories.

Show a mirrored repository

Returns the mirrored repository.

Add mirrored repositories to a subrepository

Returns a list of added mirrored repositories.

Edit the mirroring behaviour of mirrored repository in a subrepository

Returns the edited mirrored repository.

Delete a mirrored repository from a subrepository

List all mirrored packages from a mirrored repository in a subrepository

Returns an array of packages.

Add mirrored packages from one mirrored repository to a subrepository

Returns an array of jobs.

Remove all mirrored packages from one mirrored repository in a subrepository

Package

You can reference a package by its name or ID.

List an organization's packages

Returns an array of packages.

Show a package

Returns the package.

Create a vcs package

Returns a new job.

Create a vcs package with credentials

Returns a new job.

Create a vcs package with a specific type

Returns a new job.

Create a custom package

Returns a new job.

Create a custom package with credentials

Returns a new job.

Edit a vcs package

Returns a new job.

Edit a custom package

Returns a new job.

Delete a package

List all dependents of a package

Returns a list of packages.

List all customers with access to a package

Pass either package ID or package name as argument.

Returns a list of customers with access to the package.

List all security issues of a package

Returns a list of security issues.

Show the security monitoring config of a package

Returns the security monitoring config of the package.

Edit the security monitoring config of a package

Returns the edited security monitoring config of the package.

Create an artifact package file

Create an artifact package

Add an artifact file to an existing package

Update or replace artifact files of a package

Credential

List an organization's credentials

Returns an array of credentials.

Show a credential

Returns the credential.

Create a credential

Returns the new credential.

Edit a credential

Returns the edited credential.

Delete a credential

Mirrored Repository

List an organization's mirrored repositories

Returns an array of mirrored repositories.

Show a mirrored repository

Returns the mirrored repository.

Create a mirrored repository

Returns the new mirrored repository.

Edit a mirrored repository

Returns the edited mirrored repository.

Delete a mirrored repository

List all mirrored packages from one repository

Returns an array of packages.

Add mirrored packages from one repository

Returns an array of jobs.

Remove all mirrored packages from one repository

Job

Show a job

Returns the job.

Wait for a job to finish

This will periodically poll the job status until the job either finished or the maximum wait time was reached

Returns the job.

Security Issue

List an organization's security issues

Returns an array of security issues.

Magento legacy keys

List all legacy keys for a customer

Returns a list of Magento legacy keys.

Create a new legacy keys for a customer

Returns the new Magento legacy key.

Delete a legacy keys from a customer

Validate incoming webhook payloads

When you create or update a webhook in Private Packagist an optional secret can be set. This secret gets used to create a signature which is sent with each request in the headers as Packagist-Signature. The secret and signature can then be used on your server to validate that the request was made by Private Packagist. If no secret is set then no signature is sent.

License

private-packagist/api-client is licensed under the MIT License


All versions of api-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ext-json Version *
composer-runtime-api Version ^2.0
php-http/client-common Version ^1.9 || ^2.0
php-http/discovery Version ^1.0
psr/http-client-implementation Version ^1.0
php-http/message-factory Version ^1.0
psr/http-message-implementation Version ^1.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 private-packagist/api-client contains the following files

Loading the files please wait ....