Ana Sayfa / Kod ve Scriptler / JSON Mock API Generator - PHP Script

JSON Mock API Generator - PHP Script

Sahte API'leri anında yayına alın — JSON yapıştırın, canlı bir uç nokta alın. Backend kodu yok, karmaşık kurulum yok. Ön yüz geliştiricileri ve QA için mükemmel.

  • Yayın tarihi14 Mart 2026
  • Nerede çalışırPHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4, PHP 5.4, PHP 5.5, PHP 5.6
  • VeritabanıMySQL 5.x
  • Paket içeriği.php, .css, .html, .less, .sql, .xml, JavaScript .js
  • Son güncelleme14 Mart 2026
  • Canlı demoVar
JSON Mock API Generator -  PHP Script

Overview

JSON Mock API is a ready-to-use PHP script that turns any JSON into a real REST API. Your buyers get a professional, self-hosted product: a public marketing site, user registration, per-user mock endpoints, rate limits (Free / Pro), and a full admin panel. No coding the API layer—just upload the script, run the installer, and start offering mock APIs to your users or team.

Ideal for

  • SaaS owners selling mock-API tools
  • Dev agencies offering client demos
  • Internal teams that need instant API endpoints for testing
  • Anyone who wants to monetize or streamline “JSON to API” without building it from scratch

What you get

  • Single codebase
  • Clean URLs (/api/users, /docs/users)
  • Faker-style placeholders for dynamic data
  • Request logging
  • Plan-based limits (Free / Pro)
  • Fully configurable from the admin panel

One purchase, unlimited use on your server.

Features

  • Instant API from JSON — Users paste or upload JSON and get a live endpoint (e.g. yoursite.com/api/users) with one click.
  • Plans & rate limits — Built-in Free and Pro plans (configurable); limit endpoints and requests per day per user. Admin assigns plans; no self-service payment required unless you add it.
  • Full admin panel — Dashboard stats, manage users (name, email, plan, status), all endpoints, API logs with filters, Plans CRUD, Settings (site name, URL, logo, favicon, default plan, registration toggle), static Pages, and admin accounts.
  • User dashboard — Register, create endpoints (slug, method, status code, delay, custom headers), view usage vs limit, profile, and per-endpoint docs link.
  • Faker placeholders — Support {{name}}, {{email}}, {{phone}}, {{date}}, {{uuid}}, {{integer}}, {{id}} in JSON; each request returns new random values.
  • Documentation per endpoint — Public /docs/{endpoint} page with request URL, methods, status, delay, headers, and sample response. Great for sharing with clients or developers.
  • Branding & SEO — Logo, favicon, meta description, and tracking code saved from Admin → Settings (stored in database; no need to make config writable).
  • Security — Password hashing, CSRF protection, prepared statements, installer lock after setup. No hardcoded credentials in the package.
  • Clean URLs — Apache rewrite (or equivalent) for /api/{slug} and /docs/{slug}. Works in subfolders (e.g. yoursite.com/dishly/).
  • Documentation included — README, INSTALL, CONFIG, ADMIN, USER, and API docs so you and your customers can install and run it without guessing.

Requirements

  • PHP 8.0 or higher
  • MySQL 5.7+ or MariaDB
  • Web server with URL rewriting (e.g. Apache mod_rewrite + AllowOverride, or Nginx equivalent)
  • PHP extensions: mysqli, json

Runs on shared hosting, VPS, or any server that meets the above requirements.