Download the PHP package als/erusage without Composer

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

Als/Erusage

Учёт используемой памяти и сборка мусора.

Installation

Information

Ну вот, приехали... И тут дожили до сборки мусора... Ну а кто обещал что будет совсем легко? В общем пользоваться ей совершенно не обязательно, но иногда наступает момент когда она может пригодиться. Родной ^memory:compact[] никто не отменял, но вызывать его при каждом чихе не стоит, т.к. упоминаемая операция не сказать что очень быстрая.

И тут может помочь предлагаемый класс Als/Erusage, в задачу которого в принципе входит абсолютно то-же самое: периодические вызовы ^memory:compact[], но делать он это будет не постоянно. И в добавок к этому он будет накопливать простенькую статистику, которая может вам пригодиться.

Как обычно все просто: в местах, после которых как вам кажется надо бы пособирать мусор, вызываете ^Als/Erusage:compact[] вместо обычного ^memory:compact[]. Все. :)

И что это даст? Дело в том что класс будет вызывать парсерный ^memory:compact[] только тогда, когда с момента последней сборки мусора будет использовано памяти больше, чем значение $.iLimit (по умолчанию 2048 КБ), в противном случае ничего делаться не будет (кроме учета количества вызовов). Значение $.iLimit можно изменить с помощью вызова статического метода ^Als/Erusage:init[ $.iLimit(4096) ].

Если в очередной точке пространственно-временного континиума вашего кода вы решите, что тут нужно обязательно выполнить самый что ни на есть настоящий ^memory:compact[], то смело зовите ^Als/Erusage:compact[ $.bForce(1) ] и он будет выполнен, век воли не видать :)

А на последок в @postprocess[] вы можете вызвать ^Als/Erusage:print[] и вывести накопленные результаты на экран (или в файл, если вызовете ^Als/Erusage:print[ $.sFile[путь/к/файлу.log] ]).

А ещё из @postprocess[] можно вызвать ^Als/Erusage:log[ $.sFile[/путь/к/erusage.log] ] и класс в лог запишет время формирования страницы и израсходованную память (ну и ещё кое какие полезные мелочи).

Вот теперь совсем всё :)

References


All versions of erusage 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 als/erusage contains the following files

Loading the files please wait ....