SimpJ2J

GitHub tag (latest SemVer) GitHub
I started this project some time ago just for testing purposes. It was meant to be used in my ReactJS experiments. But I think is quite useful for small projects and not so small project.

Do it simple bro, is the main motto in this project. All other API for remote db access are to complex for my taste.

Anyway now is completely open an anyone can use it as he whish.

Actually this is only a JSON wrapper for SQL, or transformer, transforms JSON to SQL statement then execute that statement and return result in JSON encoded object.

Getting Started

Just download or clone this repo on jour LAMP server and compose 🙂

Write on command prompt


composer

composer will download “firebase/php-jwt” in /vendor folder.

Prerequisites

MySQL, PHP with PDO enabled on an apache2 webserver. Probably will work on eny http sever with PHP but is not tested, yet.

Full source code for testing app can be found here ong github ristep/SimpJ2J-react-test

Using

Just send post request whit JSON encoded Data

// Example request JSON
{
  sqlStatement: 'select',
  table: 'foods',
  fields: [
    'id',
    'name'
  ],
  keyData: {
    id: 980
  }
}

this will be transformed in to SQL statement:

SELECT id,name FROM foods WHERE id='980' ;

and if everything is OK service will return something like this

{
  "OK": true,
  "error": false,
  "message": " successfully!",
  "SQL": "SELECT id,name FROM foods WHERE id='980'  ;",
  "count": 1,
  "data": [
    {
      "id": 980,
      "name": "Updated food name"
    }
  ]
}

Examples

For live example go to this link.

Built With

  • PHP – PHP is a popular general-purpose scripting language that is especially suited to web development.
  • PDO – PHP Data Objects
  • php-jwt – A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Author

Riste Panovski

7 thoughts on “SimpJ2J

  1. rr88link напиша:

    rr88link’s been my go-to lately. Easy to navigate, and they always seem to have some kind of promo going on. Good times! Give it a spin: rr88link

  2. dmwininvitecode напиша:

    Heard about DMWin and looking for an invite code? dmwininvitecode seems like it might be the place to find one. Good luck getting in! See if they have any: dmwininvitecode

  3. bj88casino напиша:

    BJ88casino is alright, been messing around on there. Nothing spectacular but got some good bonuses when I signed up. Worth a look if you like promos: bj88casino

  4. k8ccbet напиша:

    K8ccbet, my dudes! They got a huge selection of games and the payouts are legit. Been having a blast here, definitely worth checkin’ out. k8ccbet

  5. multibet88play напиша:

    Multibet88play is a solid option. I appreciate the clear layout and easy access to different games. Deposit and withdrawal options are good too. Definitely worth checking out if you’re looking for something new: multibet88play

  6. saklagame напиша:

    That’s fascinating! It’s amazing how probability & strategy blend in games – Saklagame seems to really focus on that competitive edge. Thinking about bankroll management & responsible gaming is smart! Check out this saklagame link for more insights. It’s all about having fun, right? 😉

  7. 789pvip напиша:

    789pvip looks interesting, gotta say. Their VIP program seems enticing. Anyone here a member? Wanna hear your experiences with using 789pvip!

Напиши одговор на 789pvip Откажи одговор

Вашата адреса за е-пошта нема да биде објавена. Задолжителните полиња се означени со *