Download the PHP package digitalkaoz/versioneye-php without Composer
On this page you can find all versions of the php package digitalkaoz/versioneye-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalkaoz/versioneye-php
More information about digitalkaoz/versioneye-php
Files in digitalkaoz/versioneye-php
Package versioneye-php
Short Description PHP CLI for the VersionEye API
License MIT
Informations about the package versioneye-php
a PHP CLI/Library for the VersionEye API
see https://www.versioneye.com/api/ for API documentation
Installation
There are 2 ways to install it:
- Download the Phar (recommended)
- Install from source code
Download the Phar (recommended)
download the latest version from the Releases section or from the cli:
Install as global Composer Package
now you can run ~/.composer/vendor/bin/versioneye
maybe add this folder to your PATH
variable.
Install from source code
first you have to decide which http adapter
to use. The library supports all adapters supported by php-http/httpplug
Usage
all API endpoints are implemented, see https://www.versioneye.com/api/ for their detailed docs.
programmatic:
cli:
Here some usage examples.
Or with the phar file.
The last command requires that you have setup your API Key correctly.
Configuration
to store your generated API Token globally you can create a global config file in your home directory:
~/.veye.rc
we share the same config file with the ruby cli https://github.com/versioneye/veye
the file would look like:
now you dont have to pass your token on each call!
CLI Tool
to build a standalone phar, simply execute the following commands.
Commands:
The Commands are autogenerated by introspecting the API Implementations. Each Public Method is a Command, each Method Parameter will be translated into a InputArgument or InputOption.
github
github:delete remove imported project.
github:hook GitHub Hook.
github:import imports project file from github.
github:repos lists your's github repos.
github:show shows the detailed information for the repository.
github:sync re-load github data.
me
me:comments shows comments of authorized user.
me:favorites shows favorite packages for authorized user.
me:notifications shows unread notifications of authorized user.
me:profile shows profile of authorized user.
products
products:follow follow your favorite software package.
products:follow_status check your following status.
products:references shows all references for the given package.
products:search search packages.
products:show detailed information for specific package.
products:unfollow unfollow given software package.
products:versions shows all version for the given package.
projects
projects:all shows user`s projects.
projects:create upload project file.
projects:delete delete given project.
projects:licenses get grouped view of licences for dependencies.
projects:merge merge two projects together.
projects:merge_ga merge two projects together (only for maven projects).
projects:show shows the project's information.
projects:unmerge unmerge two projects.
projects:update update project with new file.
services
services:ping Answers to request with basic pong.
sessions
sessions:close delete current session aka log out.
sessions:open creates new sessions.
sessions:show returns session info for authorized users.
users
users:comments shows user's comments.
users:favorites shows user's favorite packages.
users:show shows profile of given user_id.
FAQ
default HTTP-Adapter
since we are relying on php-http we dont ship a default http implementation. (for dev we do)
choose one of these Client Adapters and require it with composer
and puli
will discover it for you, and we will use it!
implement a new HTTP Adapter
simply implement the Rs\VersionEye\Http\HttpClient
Interface:
and then pass it the the Client:
writing a new Api
simply implement the Rs\VersionEye\Api\Api
Interface:
the you have to register the Api in the CommandFactory
(maybe even that could be autogenerated by searching all implementors of Interface Rs\VersionEye\Api\Api
):
be aware that each public method would be exposed as Command
. Mandatory Parameters will be InputArgument
s, optionals will be a InputOption
. The Command description would be taken from the phpdoc
!
So the above example will be generated to this Command
:
foo:bar --bazz=1 bar //awesome api endpoint
Writing a new Console Output Formatter
by default the Command
tries to find the same API method in the Output Classes (if not it will output the data as simple print_r
:
Rs\VersionEye\Api\Github:sync
API ----> Rs\VersionEye\Output\Github:sync
Output
so for the above Example simply create the following Class:
thats all.
Tests
All versions of versioneye-php with dependencies
symfony/console Version ^2.4 | ^3
symfony/event-dispatcher Version ^2.7 | ^3
phpdocumentor/reflection-docblock Version ^2.0 | ^3
mattketmo/camel Version ^1.1
rybakit/arguments-resolver Version ^0.5
ramsey/array_column Version ^1.1
php-http/httplug Version ^1.0
php-http/client-common Version ^1.0
php-http/message Version ^1.0
php-http/plugins Version ^1.0
php-http/discovery Version ^1.0
php-http/client-implementation Version ^1.0
puli/composer-plugin Version ^1.0
php-http/multipart-stream-builder Version ^1.0