Download the PHP package igzard/code-storage-php without Composer

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

code-storage-php

Latest Version on Packagist Total Downloads License

Pierre Code Storage SDK for PHP — a port of code-storage-go.

Installation

The SDK talks HTTP through any PSR-18 client. If you already have one installed (Guzzle, Symfony HttpClient, ...) it is discovered automatically; otherwise pass your own:

Usage

Every option is a named argument, every response is a readonly object. TTLs are integer seconds.

Inspect file metadata

Download an archive

archiveStream() and fileStream() return the raw PSR-7 response, so you can pipe the body wherever you need it.

List files with metadata

Blame a file

ranges accepts repeated git blame -L specs ("10,30", "/getUser/,/^}/", "10,+5", "10,", ",30", "10", ":funcname"). Up to 16 per request; omit to blame the whole file. The top-level commitSha is the SHA ref resolved to; each BlameLine carries its authoring commit's metadata inline, with previousCommitSha empty when the line has no prior version.

Manage tags and branches

Manage notes

Notes default to refs/notes/commits. Set ref to target another notes ref; a bare name like reviews is placed under refs/notes/ (a fully-qualified refs/notes/* ref also works). Custom refs must be enabled server-side.

Preview and perform merges

Create a commit

addFile() also accepts a stream resource or a PSR-7 StreamInterface, so large blobs never have to be held in memory. A builder cannot be reused after send().

Inspect commit parents

listCommits() and getCommit() expose parent SHAs in Git parent order. Root commits return an empty array.

Get an applicable commit diff

gitApplyCompatible generates raw diffs for use with git apply. When no files are filtered and every changed file has a non-empty raw, concatenate each $diff->files[$i]->raw in response order to produce a patch for the exact base tree.

Hydrate a repo without an API request

Sync from a public GitHub base repository

Validate webhooks

Errors

Exception Raised when
InvalidArgumentException Client-side option validation fails.
Exception\ApiException The API answers with a non-2xx status. Carries status, method, url and the decoded body.
Exception\RefUpdateException A commit, note write or restore was refused. Carries status, a normalized reason and the partial refUpdate.

Features

Development


All versions of code-storage-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
ext-openssl Version *
firebase/php-jwt Version ^6.10 || ^7.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
php-http/discovery Version ^1.19
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 igzard/code-storage-php contains the following files

Loading the files please wait ...