Project, User, Studio, authenticated session, Cloud Variables, CloudRequests, CloudDatabase, Watcher, Analyzer, Turkish Studio Trending ve siteye gömülebilen Wizard Pro Control Center tek pakette.
Project, User, Studio, authenticated sessions, Cloud Variables, CloudRequests, CloudDatabase, Watcher, Analyzer, Turkish Studio Trending and an embeddable Wizard Pro Control Center in one package.
Scratch platformuyla çalışan bağımsız, açık kaynak PHP kütüphanesi.Independent open-source PHP library for the Scratch platform.<?php
require __DIR__ . '/vendor/autoload.php';
use ScratchByPHP\Scratch;
$scratch = new Scratch();
$wizard = $scratch->wizard([
'allow_auth' => true,
'allow_writes' => true
]);
// HTML çıktısından önce
$wizard->handle();
?>
<?= $wizard->render() ?>composer require scratchbyphp/scratchbyphpWizard Pro, ScratchByPHP özelliklerini kullanmak için her siteye ayrı yönetim paneli yazma zorunluluğunu azaltır. Tek modal içinde public API sorguları, Scratch login, authenticated işlemler, Cloud araçları, Watcher, Analyzer, ProjectDiff ve developer diagnostics kullanılabilir.
Wizard Pro reduces the need to build a custom administration panel for every project. Public APIs, Scratch login, authenticated actions, Cloud tools, Watcher, Analyzer, ProjectDiff and diagnostics live inside one modal.
{
"title": "Weekend",
"stats": { ... }
}$project = $scratch
->project(104);
$data = $project->get();Public veri, Search, Explore, Turkish Studio Trending ve Analyzer.
Login, project/user/studio işlemleri; session ID browser'a verilmez.
Cloud Variables, CloudDatabase, CloudDB Pro ve CloudRequests.
Watcher, Doctor, Metrics, Circuit Breaker ve otomatik kod üretimi.
v0.8.5; temel Scratch API erişiminin üstüne database bridge, discovery/ranking, watcher, reliability ve gömülebilir kontrol merkezi ekliyor.
CloudDatabase key/value verisini JSON config veya mysqli bağlantısıyla prepared statement + transaction kullanarak MySQL'e aktar.
Türk isimli Scratch stüdyolarını keşfet, tüm projeleri tekilleştir ve views + freshness ağırlıklı algoritmayla sırala.
Fresh polling, view/love/favorite/remix/comment/share değişimleri, persistent state, event queue, jitter ve backoff.
Projelerin sprite ve blok farklarını karşılaştır. toArray() ana çıktı, summary() compatibility alias.
Cache 2.0, Batch 2.0, Retry Policy, Circuit Breaker, Metrics ve Doctor 2.0.
Analyzer 2.0, opcode/warning analizleri, SB3 Archive ve Validator.
Public veri ve auth'tan Cloud backend'e, database bridge'den Watcher ve developer tooling'e kadar tek nesne modelinde.
Metadata, comments, remixes, actions, players, Analyzer, SB3.
Profiles, followers, allProjects, curators, managers, authenticated workflows.
Remote variables, verification, listeners, CloudRequests/RPC, CloudDatabase.
Cloud key/value → MySQL, prepared statement, transaction, server-side profiles.
Polling events, baseline, persistence, queue, jitter and backoff.
Collections, pagination, batch requests, parallel HTTP and concurrency controls.
Cache rules, retry policy, circuit breaker, metrics and health diagnostics.
CLI, FakeScratch, PHPUnit, PHPStan, test center and llms.txt.
getToDB() CloudDatabase içindeki key/value verilerini MySQL'e aktarır. Wizard kullanırken credentials browser'a verilmez; yalnızca server-side profil adı gösterilir.
$cloud = $session->cloud($projectId);
$cloud->connect();
$result = $cloud
->database('db')
->getToDB(__DIR__ . '/mysql.json');
$cloud->disconnect();$projects = $scratch->turkishTrending(
limit: 20,
scan: 120
);
foreach ($projects as $project) {
echo $project['turkish_trend']['rank'];
echo $project['turkish_trend']['score'];
}İsminde türk/Türk/TÜRK geçen stüdyolar aranır, projeleri pagination ile çekilir, duplicate project ID'leri temizlenir ve views %35 + loves %15 + favorites %10 + freshness %40 ile ranklanır.
Dashboard, Cloud backend, studio yönetimi, watcher, analiz aracı, MySQL bridge veya doğrudan sitene gömülen Control Center.