Download the PHP package teitge/jsonsql without Composer

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

🗂️ JsonSQL

JsonSQL ist eine moderne PHP-Bibliothek für SQL-ähnliche Abfragen und Datenmanagement direkt auf JSON-Dateien.
Sie funktioniert komplett dateibasiert – ohne MySQL, SQLite oder Datenbankserver.
Neu ab Version 1.0.8: Jetzt mit leistungsstarker TableRepair-Funktion zur automatischen Datenbereinigung und Feldsortierung nach Systemdefinition!

Latest Stable Version License


✅ Vorteile


Neu in Version 1.1.1:

Recordset-Navigation wie in Delphi/ADO:
Nach jeder Abfrage (get()), jedem insert() oder update() kannst du jetzt durch das Ergebnis wie in klassischen Desktop-Datenbanken blättern – mit first(), last(), next(), prev(), current(), seek($idx), eof(), bof(), totalCount() u.v.m.

Intern speichert JsonSQL das Resultset im neuen Array $currentData und verwaltet den aktuellen Zeiger über $currentRecordIndex. Alle Navigationsmethoden arbeiten auf diesem Puffer – blitzschnell, ohne neue Abfrage!

Bestens geeignet für:

  • Detail-/Editor-Ansichten
  • Master-Detail-Layouts
  • Pagination & Blätter-Buttons
  • Komplexe Admin-Oberflächen

Beispiel:

Hinweis:
Die klassische Einzelabfrage-Methode heißt jetzt firstRecord() – sie führt immer eine gezielte Query mit limit(1) aus.
Die neuen Navigationsmethoden blättern im bereits geladenen Resultset – ohne weitere Datenbankzugriffe.


Neu in Version 1.1.0:
Automatische TableRepair-Funktion: Ergänzt fehlende Pflichtfelder, entfernt unerlaubte Felder und bringt alle Datensätze in die von der system.json vorgegebene Feldreihenfolge.
Demo und Utility-Methoden inklusive!


🚀 Installation

Mit Composer installieren:

Oder manuell einbinden:


⚡ Beispiel


🧰 Features

Kategorie Details
Datenquelle JSON-Dateien je Tabelle
Abfragen select, where, orderBy, groupBy, join, limit, offset
Systemlogik autoincrement, autouuid, autohash, timestamps, Validierung
Verschlüsselung Felder können automatisch ver- und entschlüsselt werden (encrypt)
Statistik sum, avg, count, median, mode, stddev, variance, …
Transaktionen transact(), commit() – sicher & verzögert schreiben
Import/Export CSV & MySQL (CREATE/INSERT) aus .system.json generieren
TableRepair & Bereinigung Fehlende Felder ergänzen, unerlaubte Felder entfernen, automatische Sortierung
Modularer Code PSR-4, eigene Traits & Klassen je Bereich

📁 Struktur


🔎 Systemfelder (system.json)

Typ Bedeutung
autoincrement Zählt IDs automatisch hoch
autouuid Generiert UUIDs bei jedem Insert
autohash Erzeugt Hash (z. B. md5, sha256)
timestamp:create Zeitstempel bei Erstellung
timestamp:update Zeitstempel bei Änderung
encrypt / decrypt Feldinhalt verschlüsseln / entschlüsseln

Hinweis:
Beim Einfügen, Aktualisieren und Reparieren von Datensätzen wird die Feldreihenfolge jetzt automatisch nach der system.json gespeichert – für perfekte Konsistenz und Export-Kompatibilität.


🧪 Demos

👉 Vollständige Demos findest du unter /examples/demos:


📌 Roadmap


🔐 Lizenz

MIT – kostenlos & offen für private oder kommerzielle Nutzung.


🤝 Mitwirken

Du hast Ideen, willst mithelfen oder Fehler melden?
→ Issues & Pull Requests sind willkommen!


🗂️ Komplett-Download

Du kannst auch den vollständigen Download inklusive Demo von https://www.json-sql.de/JsonSQL.zip herunterladen.


© 2024–2025 JsonSQL Team
🔗 Projektseite: https://www.json-sql.de
🔧 GitHub: https://github.com/johannes-teitge/JsonSQL


All versions of jsonsql with dependencies

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

Loading the files please wait ...