Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via composer

google/crc32 v0.2.0

Various CRC32 implementations
Package summary
Share
0
issues
1
license
1
Apache-2.0
Package created
16 Apr 2019
Version published
16 Apr 2023
Maintainers
2
Total deps
1
Direct deps
0
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
google/crc32@v0.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of google/crc32 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does google/crc32 do?

The google/crc32 PHP package by Google incorporates various implementation of CRC32, supporting all CRC32 polynomials. This package also offers hardware-accelerated versions of CRC32C (Castagnoli) when paired with additional PECL extension. Similar to other CRC (Cyclic Redundancy Check) implementations, this package computes checksums of data to detect possible errors during transmission or storage. However, since PHP 8.0, these internal crc32 algorithms are deprecating the need for this extension, due to PHP's accelerated hardware support.

How do you use google/crc32?

The google/crc32 library can be quickly and effortlessly implemented in your PHP project with Composer package manager. You should first install the package using Composer by running the command composer require google/crc32. Once installed, you can use CRC32 in your PHP scripts as follows:

require 'vendor/autoload.php';

use Google\CRC32\CRC32;

$crc = CRC32::create(CRC32::CASTAGNOLI);
$crc->update('hello');
echo $crc->hash();

This script demonstrates the creation of a new CRC32 object with the Castagnoli polynomial and updates it with sample text 'hello', subsequently displaying the ensuing hash result.

Remember that CRC32 also has hardware-accelerated versions available through the use of a custom CRC32C PHP extension. To activate it, you must install the extension by following the setup instructions embedded within the readme file, ending with adding extension=crc32c.so to your php.ini file.

Where are the google/crc32 docs?

Documentation for google/crc32 is principally contained within the package's README file available on the Github repository. The README provides a basic overview of the google/crc32 package, detailing its functionalities and instructions for installation and usage. More complex or targeted queries should be directed towards googling API docs or the comparable PHP CRC32 functionalities.

All Versions