PHPackages                             debyl/starknetphp - 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. debyl/starknetphp

ActiveLibrary

debyl/starknetphp
=================

PHP that allows you to interact with StarkNet L2 network

08PHP

Since Apr 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/debyl/starknetphp)[ Packagist](https://packagist.org/packages/debyl/starknetphp)[ RSS](/packages/debyl-starknetphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

starkwarephp
============

[](#starkwarephp)

### starkwarephp allows you to interact with PHP application for StarkEx needs

[](#starkwarephp-allows-you-to-interact-with-php-application-for-starkex-needs)

 [![starkware](https://camo.githubusercontent.com/1ae5f0a2e031442c4caa6de329fdb3fe2e74dd5a98c23b0904fe076db6e531ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706f77657265645f62792d537461726b576172652d6e617679)](https://starkware.co) [![License](https://camo.githubusercontent.com/5e0abb27bc77af909f6e0c7cd00eee168f348ba6cbde1d3b1bcb5789c20477fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c61636b)](https://github.com/Starknet-php/starknet.php/blob/main/LICENSE.md)

> This project is a work-in-progress. Code and documentation are currently under development and are subject to change

Install
-------

[](#install)

> **Requires [PHP 8.0+](https://php.net/releases/)**

Install `starkwarephp` via the [Composer](https://getcomposer.org/) package manager:

```
composer require debyl/starkwarephp
```

Usage
-----

[](#usage)

Test data from [starkex-resources](https://github.com/starkware-libs/starkex-resources/blob/master/crypto/starkware/crypto/signature/signature_test_data.json?fbclid=IwAR0a1cz5FLKyuNiqYXQdCIIHUAkfDc5KLdtonhZknj3mTWs1D6Hf4hgNJ0c)

The following code can be used with a public and private key to get signatures from Limit Order:

```
$party_a_order = [
    'vaultIdSell' => 21,
    'vaultIdBuy' => 27,
    'amountSell' => '2154686749748910716',
    'amountBuy' => '1470242115489520459',
    'tokenSell' => '0x5fa3383597691ea9d827a79e1a4f0f7989c35ced18ca9619de8ab97e661020',
    'tokenBuy' => '0x774961c824a3b0fb3d2965f01471c9c7734bf8dbde659e0c08dca2ef18d56a',
    'nonce' => 0,
    'expirationTimestamp' => 438953
];
$privateKey = '0x3c1e9550e66958296d11b60f8e8e7a7ad990d07fa65d5f7652c4a6c87d4e3cc'; // change with your private key
$publicKey  = '0x77a3b314db07c45076d11f62b6f9e748a39790441823307743cf00d6597ea43'; // change with your public key
$party_a = new Starknet($privateKey, $publicKey);
print_r($party_a->signLimitOrder( $party_a_order ));
```

The following code can be used with a public and private key to get message hash from Limit Order:

```
$party_a_order = [
    'vaultIdSell' => 21,
    'vaultIdBuy' => 27,
    'amountSell' => '2154686749748910716',
    'amountBuy' => '1470242115489520459',
    'tokenSell' => '0x5fa3383597691ea9d827a79e1a4f0f7989c35ced18ca9619de8ab97e661020',
    'tokenBuy' => '0x774961c824a3b0fb3d2965f01471c9c7734bf8dbde659e0c08dca2ef18d56a',
    'nonce' => 0,
    'expirationTimestamp' => 438953
];
$privateKey = '0x3c1e9550e66958296d11b60f8e8e7a7ad990d07fa65d5f7652c4a6c87d4e3cc'; // change with your private key
$publicKey  = '0x77a3b314db07c45076d11f62b6f9e748a39790441823307743cf00d6597ea43'; // change with your public key
$party_a = new Starknet($privateKey, $publicKey);
print $party_a->hashLimitOrder( $party_a_order );
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- \[Crypto Debyl\]

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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://www.gravatar.com/avatar/0ae709a5223f6b06b13f6e86d9f6c35c3671288573ffc02f404752bca485a238?d=identicon)[debyl](/maintainers/debyl)

---

Top Contributors

[![debyl](https://avatars.githubusercontent.com/u/22981769?v=4)](https://github.com/debyl "debyl (39 commits)")

### Embed Badge

![Health badge](/badges/debyl-starknetphp/health.svg)

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

PHPackages © 2026

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