Returning data in html(firebase & php - Firebase Admin SDK for PHP)

44
January 12, 2019, at 1:40 PM

I'm confused about the routing system in the Firebase Admin SDK for PHP, I want to display html pages, and have and direct users to different pages like like home, about, account, profile and ect but I don't know how to.

for instance, with laravel, you have your controllers, routes(web.php), and views(blade template) in your resources/views folder, all helping you to create html pages through blade templating

I have noticed something though, there are two predefined routes that already came with the project(git clone https://github.com/jeromegamez/firebase-php-examples), the urls for these routes are http://127.0.0.1:8000/users and http://127.0.0.1:8000/database, for instance, when I go to /users I get json data /users data in json format

in a way this is out of context because I just want to have and be able to view html within this project(even if it returns no data from the database), but in the future i would like to retrieve similar data i showed on the image and place it on my html pages, through php, or even json to html however possible

the following is my project files structure project files structure

really hope you understand where i'm trying to go with this, your help will be appreciated

READ ALSO
How to calculate DF in TF-IDF with PHP

How to calculate DF in TF-IDF with PHP

I have a pseudocode about TF IDF, and i'm still confused how to calculate document frequency

42
Laravel working with collection filter and map

Laravel working with collection filter and map

I have a method where I can return the upcoming payment dateIn the below example, getNextDate() will return a Carbon date, like so:

54
How to make query-selector work inside php and calculate?

How to make query-selector work inside php and calculate?

I took a look at this job pricing calculator I found on Codepen and I made it work exactly how it's shown on the pen but I wanted to take it one step furtherI wanted to tie this in with phpmailer but the issue I am having is that the query selector script...

38