Download the PHP package kriosa-ai/kriosa-php without Composer

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

Kriosa PHP SDK

PHP Version License: MIT Version

Kriosa is an intelligent security middleware for PHP applications that acts as a smart layer between users and your application, detecting, filtering, and logging malicious activities before they reach your core code.

AI-powered Web Application Middleware built for developers and businesses. One file. Zero dependencies. Instant protection.


📋 Table of Contents


✨ Features


⚙️ How It Works

Kriosa uses a multi-layer security architecture to protect your application:

Key Benefit: Even when the AI API is unavailable, the local pattern matching layer continues to block common attack vectors. Your application is never left completely unprotected.


📦 Installation


🚀 Quick Start

One-Line Protection


🔧 Framework Integrations

Laravel Integration

Register the middleware:

Apply to routes:

Vanilla PHP Integration


⚙️ Configuration


🏭 Production Recommendations

Understanding fail_closed

The fail_closed setting determines what happens when the Kriosa API cannot be reached:

Setting Behavior
fail_closed: true Blocks requests when API is unreachable (security-first)
fail_closed: false Allows requests to proceed (availability-first)

Important: Even with fail_closed: false, the local pattern matching layer continues to block common attacks (SQLi, XSS, path traversal, command injection). Only advanced ML-based detection is affected by API unavailability.

Recommended Configurations by Use Case

Use Case fail_closed timeout Rationale
Public Routes false 3s Prioritize availability over security for public content
Authenticated Routes true 5s Protect sensitive user data and sessions
Admin Panels true 5s Maximum protection for critical areas
Payment/Checkout true 3s Financial transactions require security-first
API Endpoints true 2s APIs handle sensitive data and are common attack targets
Development false 10s Avoid blocking yourself while building

Production Example

Environment-Based Configuration


💬 What Developers Say

"The explainable dashboard is genuinely rare — telling me why a request was blocked with confidence scores and matched attack patterns is a lifesaver. Quick question on the config though... the fail_closed setting is the one thing people will get wrong, so I love that the docs now cover this properly."

— Early Kriosa User

"One file. Zero dependencies. Instant protection. This is exactly what I needed for my Laravel apps. The local fallback means I don't have to worry about API downtime leaving me exposed."

— Kriosa Beta Tester


🔑 Get Your API Key

  1. Sign up at kriosa.com
  2. Navigate to the API key section
  3. Copy your API key

📚 Documentation

Full documentation available at: kriosa.com/documentation.php

Quick Links


🆘 Support


📄 License

MIT License — see LICENSE for details.


🏆 Built with ❤️ in Cameroon 🇨🇲

Built by developers, for developers. Made in Africa, for the world.


⭐ Star us on GitHub — Your support helps us continue building better security tools for everyone.


All versions of kriosa-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json 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 kriosa-ai/kriosa-php contains the following files

Loading the files please wait ...