An extension providing specialized data structures as efficient alternatives to the PHP array. Highlights the API, performance and other benefits. PHP has one data structure to rule them all. The array is a complex, flexible, master-of-none, hybrid data structure, combining the behaviour of a list and a linked map. But we use it for everything, because PHP is pragmatic: “dealing with things sensibly and realistically in a way that is based on practical rather than theoretical considerations”. An array gets the job done. Unfortunately, with flexibility comes complexity. Collection is the base interface which covers common functionality like foreach, echo, count, print_r, var_dump, serialize, json_encode, and clone. Sequence describes the behavior of values arranged in a single, linear dimension. Some languages refer to this as a List. Documentation is available on php.net. You should also include the polyfill in your project for IDE integration.

Features

  • The easiest way to install the extension is to use PECL
  • You can also enable the extension temporarily using the command line
  • There is a suite of PHPUnit tests that can be installed using Composer
  • You may include the polyfill as a dependency in your project
  • An extension providing specialized data structures as efficient alternatives to the PHP array
  • You should also include the polyfill in your project for IDE integration

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

MIT License

Follow Data Structures for PHP 7

Data Structures for PHP 7 Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Data Structures for PHP 7!

Additional Project Details

Operating Systems

Windows

Programming Language

C

Related Categories

C Data Formats Software

Registered

2022-06-22