Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mozew's avatar
Level 6

How to create simple RESTful API using PHP and JSON _ PHP?

We are located on this page and receive and display information via api. I am a product specimen to they. Calculate the information according to the information it contains.

"id": 55,
"title": "test",
"alt_title": new product,
"slug": "test",
"description": test,
"price": 1000,
"image": http://.....jpg,
"status": 1,
"duration": 80,
"user_id": 1,
"views": 70,
"likes": 30,
"sales": 5,
"data": null,
"published_at": "2018-12-27 15:29:28",
"thumbnail": "http://.....jpg,",

You need to write the same html with php code Appear in the same way and using php Apply to addresses and information, for example, to display products

0 likes
0 replies

Please or to participate in this conversation.