Download the PHP package pisa/gizmo-api without Composer

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

GizmoAPI Build Status

Gizmo Application Management Platform API wrapper for PHP.

Installation

  1. Install composer

On Linux / Unix / OSX: curl -sS https://getcomposer.org/installer | php

On Windows: https://getcomposer.org/Composer-Setup.exe

Or follow instructions on https://getcomposer.org/doc/00-intro.md

  1. Install the package

Usage

The full API documentation at wiki

Quick usage

Repositories

HostRepository methods

all([integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Get all model instances from repository

findBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Finds model instances by parameters

findOneBy(array $criteria, [boolean $caseSensitive = false]): Find one model entry by parameters

get(integer $id): Get model by id

getByNumber(integer $hostNumber): Gets hosts by number

has(integer $id): Check if model entry exists.


NewsRepository methods

all([integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Get all model instances from repository

findBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Finds model instances by parameters

findOneBy(array $criteria, [boolean $caseSensitive = false]): Find one model entry by parameters

get(integer $id): Get model by id

has(integer $id): Check if model entry exists.


ServiceRepository methods

getTime(): Returns current system time.

stop(): Stops the service

restart(): Restarts the service

getStatus(): Returns status of the service

getVersion(): Returns the service version

getModule(): Returns the service module information

getLicense(): Returns license information

getHardwareId(): Returns hardware id

getSettings(): Returns the service settings


SessionRepository methods

all([integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Get all model instances from repository

findActiveBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Finds active sessions by criteria

findActiveInfosBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Find active sessions with additional information by criteria

findBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Finds model instances by parameters

findOneActiveBy(array $criteria, [boolean $caseSensitive = false]): Finds one active session by criteria

findOneActiveInfosBy(array $criteria, [boolean $caseSensitive = false]): Find one active session with additional information by criteria

findOneBy(array $criteria, [boolean $caseSensitive = false]): Find one model entry by parameters

get(integer $id): Get model by id

getActive(): Get all active sessions

getActiveInfos(array $criteria, boolean $caseSensitive): Get all active sessions and additional information

has(integer $id): Check if model entry exists.

make(array $attributes): Make a new model


UserRepository methods

all([integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Get all model instances from repository

findBy(array $criteria, [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Finds model instances by parameters

findOneBy(array $criteria, [boolean $caseSensitive = false]): Find one model entry by parameters

get(integer $id): Get model by id

has(integer $id): Check if model entry exists.

hasLoginName(string $loginName): Check if user LoginName exists.

hasUserEmail(string $userEmail): Check if user email exists.

hasUserName(string $userName): Check if user username exists.


BaseRepository methods

make(array $attributes): Make a new model


Host methods

UINotify(string $message, [array $parameters = array ()]): Send a message dialog to host

createProcess(array $startInfo): Create a new process

delete(): This method cannot be used. Host is deleted via the server service

getLastUserLoginTime(): Get the time of last user login

getLastUserLogoutTime(): Get the time of last user logout

getProcess(integer $processId): Get a single process by its id

getProcesses([array $criteria = array ()], [boolean $caseSensitive = false], [integer $limit = 30], [integer $skip = 0], [string $orderBy = NULL]): Get all processes running on the host

getProcessesByName(string $processName): Get all processes running on the host filtered by process name

isFree(): Checks if the host is free

isTurnedOn(): Shorthand for HasValidDispatcher attribute

setLockState(boolean $isLocked): Set the host to locked state

setOrderState(boolean $isInOrder): Set the host order state

setSecurityState(boolean $isEnabled): Set the host security state

terminateProcess(array $killInfo): Terminate processes

userLogout(): {@inheritDoc}


News methods

delete(): Delete the model


User methods

delete(): Delete the model

getLoggedInHostId(): Get the Host id where the user is logged in

isLoggedIn(): Check if user is logged in

lastLoginTime(): Get the time of last login to a host

lastLogoutTime(): Get the time of last logout from a host

login(\Pisa\GizmoAPI\Models\HostInterface $host): Log user in to a host

logout(): Log user out from a host

rename(\Pisa\GizmoAPI\Repositories\UserRepositoryInterface $repository, string $newUserName): Renames a user

save([\Pisa\GizmoAPI\Repositories\UserRepositoryInterface $repository = NULL]): Create or update the model

setEmail(\Pisa\GizmoAPI\Repositories\UserRepositoryInterface $repository, string $newEmail): Change the user email

setPassword(string $newPassword): Set new password for the user

setUserGroup(integer $groupId): Set user to a new user group


BaseModel methods

exists(): Check if model exists.

getInvalid(): Return attributes that doesn't pass the validator

getValidator(): Return the validator instance

getRules(): Returns the current validation rules

setRules(array $rules): Set the validation rules

mergeRules(array $rules): Merge new rules to the current validation rules

isSaved(): Check if model has saved all the changes

validate():

isValid(): Check that the model passes validation rules

load(array $attributes): Load model attributes and mark them as saved.

save(): Create or update the model

getPrimaryKeyValue(): Gets the value of the primary key

getPrimaryKey(): Gets the primary key

fill(array $attributes): Set all attributes. Use AttributeMutators if presented.

getAttribute(string $key): Get a single attribute

getAttributes(): Get all attributes

setAttribute(string $key, mixed $value): Set a single attribute. Use mutator if presented

toArray(): Alias for getAttributes


History

TODO: Write history

Credits

Jani "Zachu" Korhonen <[email protected]>


All versions of gizmo-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.0
guzzlehttp/psr7 Version ~1.2.0
illuminate/container Version ^5.1
illuminate/validation Version ^5.1
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 pisa/gizmo-api contains the following files

Loading the files please wait ....