Giter VIP home page Giter VIP logo

simple-crud-php-json's Introduction

simple-crud-php-json

This is a simple single-page CRUD backoffice, with login, and an encrypted JSON file as database.

Preview

List view List view

Edit view Edit view

Configuration

Credentials

This is the list of user/passwords for the backoffice access. You can include multiple users. At least one user is required.

By defautl user name is admin with the password 12345678.

define("CREDENTIALS", [
    'admin' => '12345678'
]);

Entries Labels

This configuration define the label text to name the database entries in the frontend. You can set yor own text to use as label, for the single and plural uses.

By default the entries are named Items.

define("ENTRY_LABEL_SINGULAR", "item");
define("ENTRY_LABEL_PLURAL", "items");

Database

File location

This is the web server path to the database json file.

If possible, move the file outside the web served folder to restrict public access to this file.

define("DB_FILE", __DIR__ . "/db.json");

Security features

By default the database file is not protected and is accesible by the general public.

To secure its contents, all the data is encrypted with a secret key.

Is recomended that you set your own secret key.

define('ENCRYPT_KEY', 'v[fjV0FhY<d9KZ;hraEUzWVwtdZvE-');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.