Download the PHP package cityofzion/neo-php without Composer

On this page you can find all versions of the php package cityofzion/neo-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package neo-php

neo-php

PHP SDK for the NEO blockchain.

Overview

What does it currently do

What will (should) it do

Documentation

Currently there isn't much documentation besides this Readme. We could use it! Do a PR if you'd like to help us :). Though there are a lot of examples

Get help or give help

Getting started

To start using neo-php you need to have composer installed. When you're ready openup a terminal and type in:

From there on include the autoloader and you can use all of the juicy neo-php features.

Wallet functionality:

The wallet part of neo-php consists out of initializers that have multiple functions.

Create new unencrypted wallet

Open an unencrypted wallet

Create new encrypted wallet

Open an encrypted wallet

Encrypt an existing wallet

BOOL to test if wallet is an encrypted wallet

String get the encrypted address, when isNEP2()

String get wif for initialized wallet

String get address for initialized wallet

String get key for initialized wallet

Minimal NEP-5 integration

We're working on NEP5 integration. For now we're able to request the majority of the NEP5 tokens balance with a specified address.

Requesting NEP-5 Token balance for address

Right now we have the following "assets" which you can request the balance for:

Token Asset constant
Ontology NeoPHP\NeoAssets::ASSET_ONT
THEKEY NeoPHP\NeoAssets::ASSET_TKY
Congierce token NeoPHP\NeoAssets::ASSET_CGE
Alphacat NeoPHP\NeoAssets::ASSET_ACAT
Narrative Token NeoPHP\NeoAssets::ASSET_NRVE
Red Pulse NeoPHP\NeoAssets::ASSET_RPX
DeepBrainChain NeoPHP\NeoAssets::ASSET_DBC
QLink NeoPHP\NeoAssets::ASSET_QLC
Trinity Network Credit NeoPHP\NeoAssets::ASSET_TN
Zeepin Token NeoPHP\NeoAssets::ASSET_ZPT
PikcioChain NeoPHP\NeoAssets::ASSET_PKC

The RPC

The RPC is the way to talk to the different blockchain nodes. For example: We use it to request the balance for the NEP-5 tokens.

Connecting to a RPC Node

Asking for balance using the CityOfZion API

Query the account asset information, according to the account address.

Query the asset information, based on the specified asset number.

Returns the hash of the tallest block in the main chain.

Returns the corresponding block information according to the specified index OR hash.

Gets the number of blocks in the main chain.

Calculate claim transaction amounts in order use sendrawtransaction to make a claim.

Returns the hash value of the corresponding block, based on the specified index.

Gets the current number of connections for the node.

Query contract information, according to the contract script hash.

Obtain the list of unconfirmed transactions in memory.

Returns the corresponding transaction information, based on the specified hash value.

Query contract information, according to the contract script hash.

Returns the corresponding transaction output information (returned change), based on the specified hash and index.

Broadcasts a transaction over the NEO network. There are many kinds of transactions, as specified in the network protocol documentation

Validate an address

NEO Cold wallet generator

You can also run the cli-create-wallet-interactive.php example to generate a new wallet. You can do so on a fresh virtual and disconnected Linux distro, you can do a clean run and keep your wallet safe.

CoinMarketCap integration

Neo-PHP Features a full CoinMarketCap API integration.

To initiate the object

To request the ticker

Arguments are start and limit. Similar to MySQL start and limit

To request the ticker for a specific currency

Check NEP-5 asset constants of this documentation for the right assets

To get global data

Check NEP-5 asset constants of this documentation for the right assets

Created by

Check out Neodius

Licensed under MIT License

Enjoy!


All versions of neo-php with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cityofzion/neo-php contains the following files

Loading the files please wait ....