PHPackages                             everdreamsoft/sandra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. everdreamsoft/sandra

ActiveProject

everdreamsoft/sandra
====================

Sandra Ontologic Datagraph

31.6k3[1 PRs](https://github.com/everdreamsoft/sandra/pulls)PHP

Since Dec 24Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/everdreamsoft/sandra)[ Packagist](https://packagist.org/packages/everdreamsoft/sandra)[ RSS](/packages/everdreamsoft-sandra/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (15)Used By (0)

Sandra
======

[](#sandra)

[![](resources/images/SandraBanner.png)](resources/images/SandraBanner.png)

Getting Started
---------------

[](#getting-started)

Using composer

```
composer require evedreamsoft/sandra

```

To instantiate your datagraph

```
$sandra = new \SandraCore\System('myFirstDatagraph,
true,    'your_DB_HOST',
'your_DB_name',
'your_DB_username',
'your_db_password');

```

For example

```
$sandra = new \SandraCore\System('myFirstDatagraph,'true,'127.0.0.1','sandra','root','');

```

### Writing data

[](#writing-data)

#### Initialization

[](#initialization)

```
$sandra = new System('AnimalShelter',true);
$catFactory = new EntityFactory('cat','catFile',$sandra);

```

 [![](resources/images/datagraph1_1.png)](resources/images/datagraph1_1.png)

We create 3 cats

```
$felixEntity = $catFactory->createNew(['name' => 'Felix',
    'birthYear' => 2012]);

$smokeyEntity = $catFactory->createNew(['name' => 'Smokey',
    'birthYear' => 2015]);

$missyEntity = $catFactory->createNew(['name' => 'Missy',
    'birthYear' => 2015,
    'handicap' => 'blind'
    ]);

```

Each cat has name reference and birthYear the last cat Missy has additional "handicap" reference The resulting simplified datagraph will look like this

 [![](resources/images/datagraph1_2.png)](resources/images/datagraph1_2.png)

### Reading data

[](#reading-data)

```
 $catFactoryForRead = new EntityFactory('cat','AnimalFile',$sandra);

 //The factory is empty we need to load the 3 cats into memory

 $catFactoryForRead->populateLocal(1000); //we read a limit of 1000 cats
 $catEntityArray = $catFactoryForRead->getEntities();
 foreach ($catEntityArray as $cat){

     echo $cat->get('name')."\n";

 }

```

returns :

Felix

Smokey

Missy

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance58

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12562468?v=4)[everdreamsoft](/maintainers/everdreamsoft)[@everdreamsoft](https://github.com/everdreamsoft)

---

Top Contributors

[![yodarks](https://avatars.githubusercontent.com/u/6185352?v=4)](https://github.com/yodarks "yodarks (20 commits)")[![ranjiteds](https://avatars.githubusercontent.com/u/94850276?v=4)](https://github.com/ranjiteds "ranjiteds (14 commits)")[![ShabanShaame](https://avatars.githubusercontent.com/u/52633544?v=4)](https://github.com/ShabanShaame "ShabanShaame (12 commits)")[![Millord1](https://avatars.githubusercontent.com/u/62941190?v=4)](https://github.com/Millord1 "Millord1 (3 commits)")[![allochi](https://avatars.githubusercontent.com/u/126279?v=4)](https://github.com/allochi "allochi (2 commits)")

### Embed Badge

![Health badge](/badges/everdreamsoft-sandra/health.svg)

```
[![Health](https://phpackages.com/badges/everdreamsoft-sandra/health.svg)](https://phpackages.com/packages/everdreamsoft-sandra)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
