Download the PHP package infrajs/ans without Composer

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

Latest Stable Version Total Downloads

API for json-answer PHP-scripts

An easy way to work with the parameters of the GET. API to return the result of the script - the success or error.

Ans::ans - Is used to output data in json format.

Ans::ans([array $ans])

Ans::err - Is used to display an error message $msg and data $ans in json format.

Ans::err([array $ans [, string $msg]])

Ans::log - Is used to display an error message $msg and data $ans in json format. Write down all the error in log stating name of the file in which the error occurred. If you have $msg, he is substituted in the end of the name

Ans::log([array $ans [, string $msg [, mixed $data [, bool $debug]]]])

Ans::ret - Is used to output data in json format, this adds to the array $msg with the passed argument.

Ans::ret([array $ans [, string $msg]])

Ans::txt - Used to display text

Ans::txt(string $ans)

Ans::GET - If the url passed to the request parameter name equal to $name, then this method will return the value of this parameter and if the provided type is $type, then the variable contained in $_GET[$name] will be assigned the new type.

Ans::GET(string $name [, string $type [, $def = null]])

Ans::ans - Используется для вывода данных в формате json.

Ans::ans([array $ans])

Ans::err - Используется для вывода ошибки с сообщением $msg и данными $ans в формате json.

Ans::err([array $ans [, string $msg]])

Ans::log - Используется для вывода ошибки с сообщением $msg и данными $ans в формате json, при этом записыват ошибку в log с указанием имени файла в котором произошла ошибка и в конце имени файла подставляет $msg, если имеется.

Ans::log([array $ans [, string $msg [, mixed $data [, bool $debug]]]])

Ans::ret - Используется для вывода данных в формате json, при этом добавляется в массив $msg с переданным аргументом.

Ans::ret([array $ans [, string $msg]])

Ans::txt - Используется для вывода текста

Ans::txt(string $ans)

Ans::GET - Если в url запросе передано имя параметра равное $name, то данный метод вернет значение этого параметра и если передан тип $type, то переменной, которая содержится в $_GET[$name] будет присвоен новый тип

Ans::GET(string $name [, string $type [, $def = null]])


All versions of ans with dependencies

PHP Build Version
Package Version
No informations.
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 infrajs/ans contains the following files

Loading the files please wait ....