Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hikari-no-yume/typedarrays
A Composer package which implements ECMAScript Typed Arrays for PHP 7.
https://github.com/hikari-no-yume/typedarrays
Last synced: 2 months ago
JSON representation
A Composer package which implements ECMAScript Typed Arrays for PHP 7.
- Host: GitHub
- URL: https://github.com/hikari-no-yume/typedarrays
- Owner: hikari-no-yume
- License: other
- Created: 2015-08-14T00:19:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T16:53:15.000Z (almost 8 years ago)
- Last Synced: 2024-10-26T13:42:56.111Z (2 months ago)
- Language: PHP
- Homepage: https://packagist.org/packages/ajf/typed-arrays
- Size: 31.3 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Typed Arrays for PHP
====================[`ajf/typed-arrays`](https://packagist.org/packages/ajf/typed-arrays) is a Composer package which implements [ECMAScript Typed Arrays](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects) (previously a Khronos Group standard) for PHP 7.
Why would you want this? For reduced memory usage, of course!
What's supported
----------------* [`ArrayBuffer`](https://www.khronos.org/registry/typedarray/specs/latest/#5)
* [Typed array views](https://www.khronos.org/registry/typedarray/specs/latest/#7)
* [`Uint8ClampedArray`](https://www.khronos.org/registry/typedarray/specs/latest/#7.1)
* [`DataView`](https://www.khronos.org/registry/typedarray/specs/latest/#8)What's not (yet) supported
--------------------------* [Correct type conversion rules](https://www.khronos.org/registry/typedarray/specs/latest/#3)
* [`Transferable`](https://www.khronos.org/registry/typedarray/specs/latest/#9) (useless in the context of PHP)
* 32-bit platforms
* PHP 5.xWhat really needs to be done and hasn't been
--------------------------------------------* Remaining `TypedArray` tests
* Writing `DataView` tests
* Release versionUsage
-----###End-user
Require `ajf/typed-arrays` in composer. Note that only `dev-master` exists for now.
###Developer
Tests can be run with `phpunit`.