client icon indicating copy to clipboard operation
client copied to clipboard

Iota with PHP

Results 13 client issues
Sort by recently updated
recently updated
newest added

- As title, add the `isArrayOfTrytes` method to validate the array of trytes. - It's also related to issue #64.

enhancement

As title, the `hashes` should be validated before setting the array hash in `setTransactionHashes` method. And the `setTransactionHashes` method are available in some classes. It can checkout the following captured...

enhancement

The `Techworker\IOTA\Type\Transaction` class has way too much logic embedded. We will need to refactor most parts of it, especially the `parse` and `__toString` methods contain a whole bunch of logic...

refactoring

The endpoint for older IRI versions was `/commands`, now it seems the `/commands` path is removed. We should do the same in https://github.com/iota-php/client/blob/master/src/Node.php#L79 and remove it. I guess we can...

:man_artist: According to the [Travis CI build log](https://travis-ci.org/peter279k/client/jobs/420183246) from my forked repository. I found some existed problems. - It's not really necessary to do the static analysis with `phpstan` in...

enhancement

Firstly, we can consider the following code snippet in `IOTA\Util\ValidatorUtil` class: ```php public static function isArrayOf(array $items, string $type): bool { foreach ($items as $item) { if (false === ($item...

enhancement

As title, it should implement this method to validate the string is safe with the valid characters. It has more detailed unit test is about that [link](https://github.com/iotaledger/iota.js/blob/develop/test/valid/vaild.isSafeString.js).

As title. Considering the `isUri` function in `iota.js`. The valid examples are as follows: ``` * udp://[2001:db8:a0b:12f0::1]:14265 * udp://[2001:db8:a0b:12f0::1] * udp://8.8.8.8:14265 * udp://domain.com * udp://domain2.com:14265 ``` The `isNeighborUri` method in...

enhancement

As title, the documents in `doc` seems to be organized. The `1-Introduction` has the same sections in `2-installation`. Others have the same problem, too.

enhancement
documentation

In the `iota.js` from `develop` branch, it looks like that has the `TODO` we need to consider on this [line](https://github.com/iotaledger/iota.js/blob/develop/lib/utils/inputValidator.js#L11). I think we can implement the `isChecksum` in the `IOTA\Util\CheckSumUtil`...

enhancement