CRUD PHP developed by Fabio Augusto.

Overview

CRUD system with PHP 7.4, PDO and JWT authentication


Important

  • Open-source software system developed and maintained by:

    Fabio Augusto

    Full PHP developer, Creator no Experts Club na Rocketseat.

    Github. Linkedin. Rocketseat.

We are still going to develop (Coming soon)

  • Authentication with JWT;
  • Rest API system;
  • Componentization with Json;
  • Among other things;

About

CRUD system (Register, Change, Read, Delete) with database, in PDO/PHPOO, with MySQL, but it can be changed to any database.

Developed with generic functions to be used with or without the creation of specific classes for each case and with the security of PDO.

Integrações

  • Composer;
  • Configuration of the getenv();
  • Convention do /Vendor;
  • Folder Structure for Projects;

Functionalities

After cloning the repository, don't forget to create the .env inside the /app folder;

file .env

#CONFIGURAÇÕES DO BANCO DE DADOS
HOST= HOST DO BANCO DE DADOS
USER= USUÁRIO
PASS= SENHA
DBSA= NOME DO BANDO
#CONFIGURAÇÕES DE E-MAIL
MAILUSER= E-MAIL DE ENVIO
MAILPASS= SENHA DO ENVIO
MAILPORT= PORTA
MAILHOST= HOST / MAIL
ANSWER= E-MAIL DE RESPOSTA
#CHAVE JWT
JWT= CHAVE DO JWT
#TOKEN
TOKEN= TOKEN DE IDENTIFICAÇÃO DO PROJETO
#OUTRAS INFORMAÇÕES
HOME= ENDEREÇO CO PROJETO
NAME= MOME DO PROJETO
IMAGENS= ENTEREÇO DAS IMAGENS

Don't forget to change and update the composer.json

composer update

Examples

require __DIR__ . '/Bootstrap/app.php';
use \App\Db\Database;

// Register in the database

  //Under development


// read from database

$where = 'status=1';
$order = '';
$limit = '';
$lista = (new Database('BANK_TABLE'))->select($where, $order, $limit)->fetchAll(PDO::FETCH_CLASS);
  if (!$lista) {
      echo 'There are no users in the bank';
    } else {
      foreach ($lista as $vaga) {
    }
  }


// Read in free database to mount select

$select = 'SELECT * from BANK_TABLE';
$lista = (new Database())->fullSelect($select)->fetchAll(PDO::FETCH_CLASS);
  if (!$lista) {
     echo 'does not exist';
   } else {
     foreach ($lista as $vaga) {
     }
    echo '<pre>';
    print_r($vaga);
    echo '</pre>';
   }



// Update the database

$data = [
   'nome' => 'Fabio',
   'data_nasc' => '10/07/1981',
   ];
$id = '9';
$update = (new Database('BANK_TABLE'))->update('id = ' . $id, $data);
  if ($update >= 1) {
   echo '<pre>';
   print_r($update);
   echo '</pre>';
  } else {
   echo 'error updating';
  }



// Delete from database

$id = '11';
$delete = (new Database('BANK_TABLE'))->delete('id = ' . $id);
  if ($delete >= 1) {
   echo '<pre>';
   print_r($delete);
   echo '</pre>';
  } else {
   echo 'not deleted';
  }
You might also like...
:elephant: A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
:elephant: A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.

Laravel Vue Boilerplate A Laravel 6 Single Page Application boilerplate using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass and Pug with: A users

Laravel and Vue js CRUD
Laravel and Vue js CRUD

Laravel and Vue js PhoneBook app In this project I have done a simple CRUD using Laravel and Vue Js. Here I have used : Vue router Sweetalert2 Resourc

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS
Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS

LiveCrud Live Crud Generator. This package generates Basic Crud with Livewire. Features Generate Complete Crud With Livewire Component and Blade Files

This package provides an artisan command to generate a basic crud with Restful API support

NHRROB Crud Generator Package This package provides an artisan command to generate a basic crud composer install command: composer require nhrrob/crud

Laravel Package for crud generation

Crud and API Generator Package Package which let's you automate tedious CRUD Operations. Requirements Laravel Version: = 8.0 PHP Version: = 7.3 Comp

A Laravel admin panel which is creating CRUD for your application automatically.

Adds a zero configuration Admin Panel to your Laravel Application Installation You can install the package via composer: composer require max-hutschen

Berikut Adalah cara untuk melakukan CRUD di FrameWork Laravel, Silahkan Disimak

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

How to Create Laravel 8 Vue JS CRUD Example

About Project How to Create Laravel 8 Vue JS CRUD, how to implement vue js crud example with Laravel 8. how to Create a crude API in Laravel 8, for ex

Crud en Laravel 8 con dos tablas relacionadas

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Owner
Fabio Augusto da Silva Amaral
Full PHP developer, Creator at Experts Club at Rocketseat
Fabio Augusto da Silva Amaral
A modern adoption of a teaching method developed by Helen Parkhurst in the 20th century

Dalton Plan Education with interactive timetable A modern adoption of a teaching method developed by Helen Parkhurst in the 20th century - If you are

Dalton Plan 8 Nov 15, 2022
A simple CRUD built in PHP, Bootstrap and MySQL

✨ Notes-CRUD ✨ A simple CRUD built in PHP, Bootstrap and MySQL ?? Table of Contents Usage Contribute Screenshots ?? Usage Add the project to your envi

Bonnie Fave 7 Dec 7, 2022
mongo php crud

mongodb-crud for php you can use this package as your php project standalone or include necessary class and files into your project how to use. simply

Ali Qorbani 4 Oct 13, 2021
CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST

crudrest ?? CRUD SIMPLES E INTUITIVO FEITO EM PHP+REST ?? Em construção... ?? Descrição do Projeto Exemplo de um CRUD feito em PHP utilizando do REST

null 1 Dec 28, 2021
Simple CRUD Product dengan PHP, MySQL & Bootstrap 5

Simple CRUD Product dengan PHP, MySQL & Bootstrap 5 Instalasi Pastikan sudah menginstall XAMPP atau sejenisnya Nyalakan service apache dan mysql buka

Gian Nurwana 1 Jan 3, 2022
A CRUD operation using php and Mysql database

This is a CRUD operation using php and Mysql database. In this when we add(CREATE) new user we need to submit add data in one form only in frontenf but in backend the data is storing in two different tables this is done using foreign key in Mysql.

Mohit Kumar 1 May 10, 2022
Very simple CRUD project, written in pure php. Designed as framework-agnostic as possible, and with basically no stack overflow if you can believe that

briefly simple CRUD pure php project for self improvement I try to make it purely in github - not only code, but any documentation (wiki), tasks (issu

Michał Jędrasiak 1 Jan 23, 2022
Basic Crud operations using smarty and php

Smarty template engine Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Documentati

null 0 Aug 8, 2022
LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.

LaraAdmin 1.0 LaraAdmin is a Open source CRM for quick-start Admin based applications with features like Advanced CRUD Generation, Schema Manager and

Dwij IT Solutions 1.5k Dec 29, 2022
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Note: This package is only used by Backpack v3. Starting with Backpack v4, everything this package does is included in Backpack/CRUD - one package to

Backpack for Laravel 845 Nov 29, 2022