enjin / platform-core
The core package for the Enjin Platform.
Installs: 7 555
Dependents: 3
Suggesters: 0
Security: 0
Stars: 8
Watchers: 7
Forks: 8
Open Issues: 3
Requires
- php: ^8.3|^8.4
- ext-bcmath: *
- ext-ffi: *
- ext-gd: *
- ext-gmp: *
- ext-imagick: *
- ext-json: *
- ext-redis: *
- ext-sodium: *
- amphp/amp: ^3.0
- amphp/http: ^2.1
- amphp/http-client: ^5.2
- amphp/parallel: ^2.3
- amphp/socket: ^2.3
- amphp/websocket: ^2.0
- amphp/websocket-client: ^2.0
- composer/semver: ^3.4
- enjin/php-blockchain-tools: ^1.15
- gmajor/sr25519-bindings: ^1.0
- gmajor/substrate-codec-php: ^1.1
- guzzlehttp/guzzle: ^7.9
- illuminate/contracts: ^11.0
- kevinrob/guzzle-cache-middleware: ^6.0
- laravel/pail: ^1.2
- mll-lab/laravel-graphiql: ^3.2
- phrity/websocket: ^1.7
- rebing/graphql-laravel: ^9.7
- revolt/event-loop: ^1.0
- simplesoftwareio/simple-qrcode: ^4.2
- spatie/laravel-package-tools: ^1.18
- stechstudio/backoff: ^1.4
- tuupola/base58: ^2.1
Requires (Dev)
- fakerphp/faker: ^1.24
- larastan/larastan: ^3.0
- laravel/pint: ^1.19
- nunomaduro/collision: ^8.5
- orchestra/testbench: ^9.9
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.5
- rector/rector: ^2.0
- roave/security-advisories: dev-latest
- dev-master
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- v1.0.0-beta.32
- v1.0.0-beta.31
- v1.0.0-beta.30
- v1.0.0-beta.29
- v1.0.0-beta.28
- v1.0.0-beta.27
- v1.0.0-beta.26
- v1.0.0-beta.25
- v1.0.0-beta.24
- v1.0.0-beta.23
- v1.0.0-beta.22
- v1.0.0-beta.21
- v1.0.0-beta.20
- v1.0.0-beta.19
- v1.0.0-beta.18
- v1.0.0-beta.17
- v1.0.0-beta.16
- v1.0.0-beta.15
- v1.0.0-beta.14
- v1.0.0-beta.13
- v1.0.0-beta.12
- v1.0.0-beta.11
- v1.0.0-beta.10
- v1.0.0-beta.9
- v1.0.0-beta.8
- v1.0.0-beta.7
- v1.0.0-beta.6
- v1.0.0-beta.5
- v1.0.0-beta.1
- dev-hotfix/PLA-2206/signing-json
- dev-release
- dev-feature/PLA-2187/consolidate-packages
- dev-feature/PLA-2155/add-block-filter
- dev-feature/pla-2016/decoder
- dev-move-scalar
- dev-mainnet-syncv2
- dev-update/pla-1948/tweak-get-tokens-query
- dev-sync-improvement
This package is auto-updated.
Last update: 2025-03-08 15:09:35 UTC
README
The core package for the Enjin Platform.
Enjin Platform is the most powerful and advanced open-source framework for building NFT Platforms.
Requirements
Please make sure you have Go installed on your machine. You can check it by typing:
go version
# go version go1.18.1 linux/amd64
If you don't have it, you can find instructions on how to install it here.
Also when using Platform-UI make sure you have Node and NPM installed:
node -v # v16.17.0 npm -v # 9.2.0
Installation
You can install it with Composer in your Laravel application:
composer require enjin/platform-core
After that, you will need to build one dependency by typing:
cd vendor/gmajor/sr25519-bindings/go && go build -buildmode=c-shared -o sr25519.so . && mv sr25519.so ../src/Crypto/sr25519.so
This package will load its migrations automatically, you need to execute them by running:
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="platform-core-config"
Usage
First, you should sync your platform with a snapshot of Enjin state:
php artisan platform:sync
After that you need to start fetching the blocks from the blockchain:
php artisan platform:ingest
Then you should start the processor to update your local database:
php artisan queue:work
# Or, if you're using Laravel Horizon
php artisan horizon
Finally, you may start the development server to access the API by running:
php artisan serve
You will find the GraphiQL playground on:
http://localhost:8000/graphiql
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The LGPL 3.0 License. Please see License File for more information.