Download the PHP package sqrtspace/spacetime without Composer

On this page you can find all versions of the php package sqrtspace/spacetime. 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 spacetime

SqrtSpace SpaceTime for PHP

Latest Stable Version Total Downloads License PHP Version Require

Memory-efficient algorithms and data structures for PHP using Williams' √n space-time tradeoffs.

Paper Repository: github.com/sqrtspace/sqrtspace-paper

Installation

Core Concepts

SpaceTime implements theoretical computer science results showing that many algorithms can achieve better memory usage by accepting slightly slower runtime. The key insight is using √n memory instead of n memory, where n is the input size.

Key Features

Quick Start

Examples

Basic Examples

See examples/comprehensive_example.php for a complete demonstration of all features including:

Laravel Application

Check out examples/laravel-app/ for a complete Laravel application demonstrating:

See the Laravel example README for setup instructions and detailed usage.

Features

1. Memory-Efficient Collections

2. External Algorithms

3. Streaming Operations

4. Database Integration

5. Laravel Integration

6. Memory Pressure Handling

7. Checkpointing for Fault Tolerance

Real-World Examples

Processing Large CSV Files

Large Data Export

Batch Processing with Memory Limits

Configuration

Advanced Usage

JSON Lines Processing

Streaming Operations

Custom Batch Jobs

Testing

Performance Considerations

  1. Chunk Size: The default √n chunk size is optimal for most cases, but you can tune it:

  2. Compression: Enable for text-heavy data, disable for already compressed data:

  3. Storage Location: Use fast local SSDs for external storage:

Framework Integration

Laravel

Symfony

For a complete Symfony integration example, see our Symfony bundle documentation.

Troubleshooting

Out of Memory Errors

  1. Reduce chunk size:

  2. Enable more aggressive memory handling:

  3. Use external storage earlier:

Performance Issues

  1. Check disk I/O speed
  2. Enable compression for text data
  3. Use memory-based external storage:

Checkpoint Recovery

Requirements

Optional Extensions

Contributing

Please see CONTRIBUTING.md for details.

License

The Apache 2.0 License. Please see LICENSE for details.


All versions of spacetime with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
psr/log Version ^3.0
psr/container Version ^2.0
psr/simple-cache Version ^3.0
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 sqrtspace/spacetime contains the following files

Loading the files please wait ....