edgebase/core

EdgeBase Core SDK — shared types, HTTP client, table, storage.

Maintainers

Package info

github.com/edge-base/edgebase-php-core

Homepage

Issues

pkg:composer/edgebase/core

Statistics

Installs: 21

Dependents: 1

Suggesters: 0

Stars: 0

v0.2.9 2026-04-08 23:06 UTC

This package is auto-updated.

Last update: 2026-04-08 23:06:43 UTC


README

EdgeBase Logo

EdgeBase PHP Core SDK

Shared low-level PHP primitives for EdgeBase.

edgebase/core is the foundation used by edgebase/admin. It provides the HTTP client, database references, table query builder, storage helpers, field operations, error types, and the server-side room client.

Most application code should install edgebase/admin instead. Use this package directly when you are building custom wrappers, generated bindings, or internal integrations.

EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.

This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: edge-base/edgebase.

Documentation Map

Use this README for the fast overview, then jump into the docs when you need depth:

For AI Coding Assistants

This package includes an llms.txt file for AI-assisted development.

Use it when you want an agent or code assistant to:

  • keep Service Key logic on the server
  • use the actual PHP class and method names
  • avoid copying JavaScript promise-based examples into PHP
  • remember which surfaces are low-level helpers versus admin-only clients

You can find it:

  • in this repository: llms.txt
  • in your environment after install, inside the EdgeBase\Core package directory as llms.txt

Installation

composer require edgebase/core

Quick Start

<?php

use EdgeBase\Core\FieldOps;
use EdgeBase\Core\HttpClient;
use EdgeBase\Core\StorageClient;

$http = new HttpClient(
    'https://your-project.edgebase.fun',
    getenv('EDGEBASE_SERVICE_KEY') ?: ''
);

$storage = new StorageClient($http);
$bucket = $storage->bucket('avatars');
$bucket->upload('user-1.jpg', 'binary-data', 'image/jpeg');

$marker = FieldOps::increment(1);

Included Surfaces

  • HttpClient
  • DbRef, DocRef, TableRef
  • StorageClient, StorageBucket
  • FieldOps::increment() and FieldOps::deleteField()
  • ListResult, UpsertResult, BatchResult
  • EdgeBaseException
  • RoomClient

Choose The Right Package

Package Use it for
edgebase/core Low-level PHP primitives for custom wrappers and internal integrations
edgebase/admin Trusted server-side code with Service Key access

License

MIT