Download the PHP package ansas/php-component without Composer

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

PHP components

Latest Stable Version Total Downloads Latest Unstable Version License

Collection of cross-project PHP classes.

Install:

Ansas\Component\Convert\ConvertPrice

Convert "dirty" prices into Euro or Cent

Methods (without internal):

Ansas\Component\Collection\Collection

Making handling of context data a bit easier.

Usage:

Ansas\Component\Convert\ConvertToNull

This trait can be used to "sanitize values" by setting empty values to null.

It holds methods which can be called in order to check if a field is empty and set it to "null" before calling the parent setter method. By doing this we have a more cleaned up object and also prevent e. g. the "versionable" behavior from adding a new version (as "" !== null).

Methods:

Ansas\Component\Session\ThriftyFileSession

All you need is to configure the native PHP session settings as usual (see http://php.net/manual/de/session.configuration.php).

After that load this class and call the static init() method: Ansas\Component\Session\ThriftyFileSession::init();

This will automatically start the session and you can use the native session handling functions and the super global variable $_SESSION as usual.

The benefit of this class is that session storage on disk and session cookies are set only if $_SESSION has data. Also the session cookie will also be updated with every request, so it will not expire before session.gc_maxlifetime and the cookie will be deleted automatically if you destroy the session (both not the case with pure native PHP sessions).

Methods (without internal):

Ansas\Monolog\Profiler

A small profiler (stop watch) for different profiles that are logged to any Monolog logger.

Methods (without internal):

Usage:

Ansas\Monolog\Processor\ConsoleColorProcessor

Adds colors to Monolog for console output via Processor. The $record parts level_name and message are colored by this processor

Usage:

TODO

Contribute

Everybody can contribute to this package. Just:

  1. fork it,
  2. make your changes and
  3. send a pull request.

Please make sure to follow PSR-1 and PSR-2 coding conventions.

License

MIT license (see the LICENSE file for more information).


All versions of php-component with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-ctype Version *
ext-iconv Version *
ext-intl Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-simplexml Version *
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 ansas/php-component contains the following files

Loading the files please wait ....