v2.5.2
Giriş yap

php ile nasıl api yazabilirim

Anonim
259 defa görüntülendi

php ile bir api yazmak istiyorum.API daki özelliklerse şunlar
Özellikler:

  • Konular için crud işlemi
  • Sayfalar için crud işlemi
  • Üyeler için ekleme,listeleme işlemi
  • Kategoriler için crud işlemi
  • Site bilgileri için düzenleme işlemi
<?php 
// Konu listeleme öneki
$apiURL='https://www.example.com/api/konu/liste';

// Konu listeleme öneki
$apiURL=array(
"url"=>"https://www.example.com/api/konu/ekle",
"data"=>array(
"baslik"=>"Deneme Başlık",    
"link"=>"deneme-baslik",
"meta_aciklama"=>"Bu bir deneme yazısıdır",
"meta_anahtar_kelimeler"=>"php,api,deneme",
"resim"=>"https://th.bing.com/th/id/OIP.S38qX_uDiknR5HMPGp0Q4QHaFH?w=185&h=128&c=7&r=0&o=5&pid=1.7"
"icerik_anasayfa"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
)
);

?>

ve daha fazlası bana yardımcı olur musunuz? Bu işte yeniyim

Cevap yaz
Cevaplar (3)
ibrmtksl
343 gün önce

symfony6 api platform kur bak keyfine her şey hazır, gerektiğinde custom müdehaleler yapabilirsin php bilgin ile

not: php8 den aşağı bir sürüm kullanıyorsan symfony5 kullanabilirsin

holdfast
348 gün önce

Bir framework öğrenin. Başlangıç için CodeIgniter 4 bakabilirsiniz. Ardından o framework'un dokümantasyonunu okuyun.

jct
354 gün önce

Sınıf yapısı sizin işinizi bence çok çok görebilir