destrofer / helper-library
Library of classes that might be useful
Requires
- php: >=8.2.0
- ext-json: *
- true/punycode: ~2.0
Requires (Dev)
None
Suggests
- ext-sockets: Needed by the Destrofer\Net async classes (AsyncClient, AsyncServer)
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v4.0.1
- v4.0.0
- v3.24.0
- v3.23.2
- v3.23.1
- v3.23.0
- v3.22.1
- v3.22.0
- v3.21.1
- v3.21.0
- v3.20.0
- v3.19.0
- v3.18.1
- v3.18.0
- v3.17.0
- v3.16.1
- v3.16.0
- v3.15.0
- v3.14.0
- v3.13.0
- v3.12.2
- v3.12.1
- v3.12.0
- v3.11.0
- v3.10.0
- v3.9.1
- v3.9.0
- v3.8.5
- v3.8.4
- v3.8.3
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.0
This package is auto-updated.
Last update: 2026-10-07 02:09:55 UTC
README
A PHP 8.2 class library to make coders life easier. All sources can be located at: https://github.com/destrofer/PhpHelperLibrary
== Installing ==
As of version 3 PhpHelperLibrary no longer has autoloader by itself. However, it may be installed using Composer, which has its own autoloader.
After installing composer you can add dependency of your project on this package by executing following command:
php composer.phar require destrofer/helper-library:^v4.0.0
or by adding "destrofer/helper-library": "^v4.0.0" to require block in
composer.json.
== Tests ==
Test scripts under tests/ exercise the components that are used in production. They
are part of the repository but not part of the package: tests/ carries export-ignore
in .gitattributes, so the archives that GitHub and Packagist serve contain no tests at
all, and composer archive excludes them too through the archive.exclude list in
composer.json.
Run them from inside the tests directory, after installing the library's own
dependencies:
php composer.phar install
cd tests
php test-logger.php
tests/test-data/ holds only run artefacts - log files, and the pages the downloader test
writes - which are ignored by the .gitignore inside it. That file also keeps the otherwise
empty directory in the repository. The socket-based test-async-* scripts additionally need
the sockets extension, because Destrofer\Net uses socket_* functions; run them where
it is available.
== License ==
Copyright 2016 Viacheslav Soroka
PhpHelperLibrary is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
PhpHelperLibrary is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with PhpHelperLibrary. If not, see http://www.gnu.org/licenses/.