Download the PHP package kerogs/kerogs-php without Composer

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

KerogsPHP

Installation

How to use

To use the package, you first need to import the autoload.php file from the vendor folder.

Once you've done that, you can use only what you're interested in.

[!NOTE] Replace [name] with the name of what you want to use. You can refer to the list below.

List

[!NOTE] All requested encryption keys are in AES-256-CBC format

Kerogs\KerogsPhp\Key

The Key() class is used to generate unique keys.

Example of use

When initializing a key, you must specify the type of character string you will use. This will be represented by a number.

Function list

function description
keyGeneration(int $length): string Generates a random key based on the character set associated with the type of key.
getCharacterSet(): string Gets the character set for the given type of key.

Kerogs\KerogsPhp\Logs

You can easily create your own logs and, if required, encrypt them.

Example of use

In the example, we initialize the class by specifying a key (this key will be used to encrypt and decrypt the contents of the logs if required). We then indicate via a true that we wish to encrypt the log file.

Then we simply add the logs.

[!IMPORTANT] The log key must be in 16-byte format, as in.

If we specify no path for the logs by indicating null for the addLog() function, then a file will automatically be created at the server root and named kp_server.log.

Also worth knowing:

Function list

addLog()

Add a log entry to the file.

encryptDecryptFile()

Encrypt or decrypt a log file.

Kerogs\KerogsPhp\Sendmail

You can send your e-mails directly without rewriting the code.

Example of use

The default content type is text/HTML

Kerogs\KerogsPhp\Github

allows you to retrieve information from a GITHUB repository and compare versions.

Function list

function description
Retrieves all repository info (JSON format) Retrieves all repository info (JSON format)
getLatestRelease($owner, $repo, $onlyName = true) Retrieves only the name of the latest repository version (or all information on the latest release).
compareVersions($versionActual, $versionLatest)|Compares 2 versions (not only works for GITHUB) (its format must be X/X.Y/X.Y.Z/X.Y.Z.F, if there is content after a “-” it will not be taken into account). (will return true if same version (if not, will return above or below the current version.))

Example of use

Kerogs\KerogsPhp\Algorithm

Allows you to manage an algorythm

Function list

function description
similarityPercentage($str1, $str2) Returns the similarity percentage
searchEngine(array $values, $query) Returns an array of values. Sort from most similar to least similar

Example of use


All versions of kerogs-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
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 kerogs/kerogs-php contains the following files

Loading the files please wait ....