Skip to content

Example API structure in PHP - MVC with Firebase Database for deployment in Vercel.

Notifications You must be signed in to change notification settings

andremalveira/api-php-mvc-firebase-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example API structure in PHP - MVC with Firebase Database for deployment in Vercel

Hi!!

Example JSON Structure in Database Firebase

name-your-database
├── public              
├── private                 
  • [public] -> Aqui crie as pastas/chaves que conterá os dados que pode ser público, acessado por qualquer usuário da Api.
  • [private] -> Aqui crie as pastas/chaves que conterá os dados privados

Example:

name-your-database
├── public    
│   └── posts  
│   └── products  
├── private                
│   └── users              

Dependencies/Require

Para produção, necessário para fazer conexão com Firebase

Para ambiente de desenvolvimento, necessário para usar as variáveis de ambiente (.env)

  • PHP dotenv

    └── composer require vlucas/phpdotenv

About

Example API structure in PHP - MVC with Firebase Database for deployment in Vercel.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published