Optimus
cuid
Optimus | cuid | |
---|---|---|
2 | 8 | |
1,254 | 3,340 | |
- | 0.5% | |
0.0 | 2.4 | |
over 1 year ago | 7 days ago | |
PHP | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Optimus
-
PostgreSQL UUID vs. Serial vs. Identity
Yes, I completely forgot about it. I used it a few years ago, I tried also [1] which is integers instead of strings.
[1] https://github.com/jenssegers/optimus
-
API: external UUID to internal ID in validation or controller or ?
To obfuscate id there are several solutions, other than the already mentioned hashids you can try this one https://github.com/jenssegers/optimus
cuid
-
Extracting Timestamp From CUID (Snowflake ❄️)
Not sure if this is the same, but a cuid related project had this requested a feature https://github.com/paralleldrive/cuid/issues/63
-
The best UUID type for a database Primary Key
I like this ones https://github.com/paralleldrive/cuid
-
Using a GUID vs. AutoIncrement number for primary key in Data Warehouse?
What about something like cuid? https://github.com/ericelliott/cuid
-
UUID/GUID, CUID & NanoID: What's The Difference?
CUID aims to solve the exact problem we discussed above with UUIDs. Quoted from CUID's GitHub:
- ROUBARAM UMA AARTE MINHA PRA FAZER NFT DE MAMACO! ÓDIO E NOJO DE CRYPTO!
- PostgreSQL UUID vs. Serial vs. Identity
- Collision-resistant ids optimized for horizontal scaling and performance
-
Things You Should Do Now
How does it compare to cuid [1]? If you know the differences, can you please explain them for those like me who do not know both?
[1] https://github.com/ericelliott/cuid
What are some alternatives?
HTML Purifier - Standards compliant HTML filter written in PHP
UUID - :snowflake: A PHP library for generating universally unique identifiers (UUIDs).
PHP Encryption - Simple Encryption in PHP.
ksuid - K-Sortable Globally Unique IDs
PHP SSH - An experimental object oriented SSH api in PHP
pg-ulid - ULID Functions for PostgreSQL
Themis - Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
Dapper - Dapper - a simple object mapper for .Net
True Random - Fetches random integers from random.org instead of using PHP's PRNG implementation
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
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.
spec - The canonical spec for ulid