Download the PHP package chameleon-m/phalcon-logger without Composer

On this page you can find all versions of the php package chameleon-m/phalcon-logger. 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 phalcon-logger

Logger

Latest Version Software License Total Downloads Build Status

How to install

Using Composer (recommended)

Best way to install skeleton would be Composer, if you didn't install it

Run code in the terminal:

Using Git

First you need to clone the project, update vendors:

DB

For PostgreSQL:

psql -h <host> -d <database> -U <user_name> -p <port> -a -w -f tests/_data/dump.sql

Or run migration (use phalcon devtools): phalcon migration run

Two methods are available:

POST /api/logs

POST /api/logs?queue=1 - push in queue (for save need run task php cli.php logs queue -v -t )

The data in it is passed to json. For example:

POST curl -X POST -d '{"entity":"Event","entityId":1000,"date":"2017-12-12 12:12:12","userId":3,"action":"create","diff":{"before":"test1","after":"test2"}}' http://phalcon-logger.dev/api/logs

The date is passed in the Postgresql timestamp format.

GET /api/logs

Possible filters for the query:

The response is as follows:

GET curl -X GET http://phalcon-logger.dev/api/logs?page=3

Attribute - Description

items - The set of records to be displayed at the current page\ current - The current page\ before - The previous page to the current one\ next - The next page to the current one\ last - The last page in the set of records\ total_pages - The number of pages\ total_items - The number of items in the source data\

Testing

First you need to re-generate base classes for test all suites:

vendor/bin/codecept build

Once the database is created and base clases re-generated, run the tests on a terminal:

vendor/bin/codecept run

or for detailed output:

vendor/bin/codecept run --debug

Requirements

License

This project is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.


All versions of phalcon-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-phalcon Version ^3.2
ext-json Version *
vlucas/phpdotenv Version ^2.4
dariuszp/cli-progress-bar Version ^1.0
php-amqplib/php-amqplib Version ^2.7
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 chameleon-m/phalcon-logger contains the following files

Loading the files please wait ....