Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 6 PHP Encoding Projects
-
hashids
A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
-
psl
📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Project mention: Show HN: Sqids (formely Hashids) – Generate short unique IDs from numbers | news.ycombinator.com | 2023-11-07More than 10 years ago, I released the first version of Hashids in PHP, an encoding library to generate unique IDs from numbers [0]. Over the years, many developers have converted the library to plenty of other programming languages. It was nice to see it grow, but there were always a few things that bothered me about the original algorithm, so a few months ago I've decided to try and address those issues.
With lots of help from the community, we've rebranded the library to Sqids (you can see the proposed changes here [1]).
The new library generates unique IDs faster and with a simpler algorithm. You can read all about it on the FAQ page [2] and try it out via the playground [3]. As always, feedback is welcome via HN or Github.
[0] https://github.com/vinkla/hashids/commit/98d72eac456aabbf2da...
azjezz/psl: PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers
If you want some random string (e.g. for a random filename), you can use bin2hex(random_bytes(16)). This will generate a random 128 bit identifier using the CSPRNG. To be extra safe, use https://github.com/paragonie/constant_time_encoding instead of bin2hex. The constant time encoder prevents some additional (more obscure) attacks.
PHP Encoding related posts
- Show HN: Sqids (formely Hashids) – Generate short unique IDs from numbers
- Whats New in PHP 8.2
- Long-Term Planning for PHP 9.0 Error Promotion
- PHP based base45 encoder/decoder that is compatible with draft-faltstrom-base45
- How to create a unique random string in PHP and SQL relational data base ?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 25 Apr 2024
Index
What are some of the best open-source Encoding projects in PHP? This list will help you:
Project | Stars | |
---|---|---|
1 | hashids | 5,183 |
2 | psl | 1,148 |
3 | constant_time_encoding | 775 |
4 | tinyID | 32 |
5 | base45 | 8 |
6 | file | 3 |
Sponsored