How mohamedmagdy233/worker works
This repository contains standalone PHP jobs that generate Islamic social-media posts and publish them to a Facebook page: salawat and reflections, Quran verses, hadith, and quote images. The main workflow is content selection or retrieval, message/image preparation, then publication. The hadith job also tracks published IDs to avoid repeats. Source excerpts show these flows, but do not establish how the jobs are invoked; scheduling configuration is therefore omitted.
Main entry points: p2p.php Hadith selection · p3p.php Image rendering · p5p.php Verse retrieval · p1p.php Salawat publisher
Components 17
Text post jobs
- Salawat content
p1p.php - Salawat publisher
p1p.php - Verse retrieval
p5p.php - Verse formatting
p5p.php - Verse publisher
p5p.php
Hadith publishing
- Hadith retrieval
p2p.php - Hadith selection
p2p.php - Published ID ledger
published_hadiths.json - Post formatting
p2p.php - Facebook publisher
p2p.php
Image post job
- Quote selection
p3p.php - Image rendering
p3p.php - Image publisher
p3p.php
Other components
- HadeethEnc API
- AlQuran Cloud API
- Facebook Graph API
- ImageMagick
Connections 17
- Salawat content → Salawat publisher: submits text
p1p.php - Salawat publisher → Facebook Graph API: publishes feed
p1p.php - Verse retrieval → AlQuran Cloud API: fetches verse
p5p.php - Verse retrieval → Verse formatting: provides verse
p5p.php - Verse formatting → Verse publisher: submits text
p5p.php - Verse publisher → Facebook Graph API: publishes feed
p5p.php - Hadith retrieval → HadeethEnc API: requests categories
p2p.php - Hadith retrieval → Hadith selection: provides results
p2p.php - Hadith selection → HadeethEnc API: requests details
p2p.php - Hadith selection → Published ID ledger: checks IDs
p2p.php - Post formatting → Facebook publisher: submits text
p2p.php - Facebook publisher → Facebook Graph API: publishes feed
p2p.php - Facebook publisher → Published ID ledger: records success
p2p.php - Quote selection → Image rendering: provides quote
p3p.php - Image rendering → ImageMagick: renders assets
p3p.php - Image rendering → Image publisher: provides image
p3p.php - Image publisher → Facebook Graph API: publishes photo
p3p.php