PHPackages                             ctyurk15/ajax-injections - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ctyurk15/ajax-injections

ActiveLibrary[Database &amp; ORM](/categories/database)

ctyurk15/ajax-injections
========================

Composer package that allows you to access your Database with ajax-requests

v1.2.0(3y ago)013MITPHPPHP &gt;=5.4.0

Since Jun 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ctYurk15/ajax-injections)[ Packagist](https://packagist.org/packages/ctyurk15/ajax-injections)[ RSS](/packages/ctyurk15-ajax-injections/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Description
===========

[](#description)

Composer package that allows you to access your Database with AJAX-requests. No matter from what platform request is sent.

Installation
============

[](#installation)

To install this package you need to:

1. Install composer
2. Add line to your composer.json file in project folder:

```
"minimum-stability": "dev"

```

3. Go to your project folder with console
4. Write down next command:

```
composer require ctyurk15/ajax-injections

```

Done!

Usage
=====

[](#usage)

Here is simple examples for serverside.

1. If you want simple access without any passwords or blacklist:

```
//attaching composer`s autoload file
require __DIR__.'/vendor/autoload.php';

//creating instance of SQLCompiler
$sqlcompiler =  new SQLCompiler('localhost', 'root', 'root', 'ajax-injections');

//getting query we need to compile and password
$query = $_POST["query"];

//sending json_coded result
echo json_encode($sqlcompiler->compile($query));
```

2. If you want to ban some words in requests:

```
//attaching composer`s autoload file
require __DIR__.'/vendor/autoload.php';

//if you want to restrict some sequences(OPTIONAL)
$blacklist = ['create database', 'drop', '*', 'id'];

//creating instance of SQLCompiler
$sqlcompiler =  new SQLCompiler('localhost', 'root', 'root', 'ajax-injections', $blacklist);

//getting query we need to compile
$query = $_POST["query"];

//sending json_coded result
echo json_encode($sqlcompiler->compile($query));
```

3. Maximal security with password and blacklist:

```
//attaching composer`s autoload file
require __DIR__.'/vendor/autoload.php';

//if you want to restrict some sequences(OPTIONAL)
$blacklist = ['create database', 'drop', '*', 'id'];

//creating instance of SQLCompiler
$sqlcompiler =  new SQLCompiler('localhost', 'root', 'root', 'ajax-injections', $blacklist, '12345');

//getting query we need to compile and password
$query = $_POST["query"];
$password = $_POST["password"];

//sending json_coded result
echo json_encode($sqlcompiler->compile($query, $password));
```

Example
=======

[](#example)

Example website:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ebefb307b182d2c296a92966d2f4f61c1abcf4bde4bcbb8f0b8c1e77d269e60?d=identicon)[ctYurk15](/maintainers/ctYurk15)

---

Top Contributors

[![ctYurk15](https://avatars.githubusercontent.com/u/44519773?v=4)](https://github.com/ctYurk15 "ctYurk15 (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ctyurk15-ajax-injections/health.svg)

```
[![Health](https://phpackages.com/badges/ctyurk15-ajax-injections/health.svg)](https://phpackages.com/packages/ctyurk15-ajax-injections)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
