Description
🧰 Admin Panel Starter Kit for Contentful (PHP)
This lightweight PHP-based admin panel allows you to sync, manage, and monitor Contentful entries — ideal for small projects or internal tools without needing heavy frameworks or MySQL.
🔑 Features
✅ Login Protected Dashboard
-
Simple session-based login screen (
login.php
) -
No database required — credentials are hardcoded in PHP
-
Includes a logout option
✅ One-Click Product Sync (sync-products.php
)
-
Fetches product data from a REST API (
https://yourapi.com/products
) -
Automatically creates new entries in Contentful
-
Updates existing entries if product SKU already exists
-
Deletes Contentful entries that no longer exist in your API (clean sync)
-
Publishes entries automatically
✅ Sync Log & Dashboard (dashboard.php
)
-
View live output after syncing
-
Displays last 10 synced products with timestamps and status
-
Stores logs in
/data/last-sync.json
📂 File Structure
🛠 Setup Instructions
-
Place the folder in your WAMP/XAMPP or live PHP server
-
Update
sync-products.php
with:-
Your Contentful
spaceId
,accessToken
-
Your API endpoint (
$externalApiUrl
)
-
-
Navigate to
/admin-panel/login.php
to begin
🔐 Default Credentials
-
Username:
admin
-
Password:
yourSecret123
You can change them in login.php
.
Reviews
There are no reviews yet.