cuid
Optimus
Our great sponsors
cuid | Optimus | |
---|---|---|
8 | 2 | |
3,338 | 1,254 | |
1.1% | - | |
2.8 | 0.0 | |
8 days ago | over 1 year ago | |
JavaScript | PHP | |
GNU General Public License v3.0 or later | MIT License |
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.
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
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
What are some alternatives?
UUID - :snowflake: A PHP library for generating universally unique identifiers (UUIDs).
HTML Purifier - Standards compliant HTML filter written in PHP
ksuid - K-Sortable Globally Unique IDs
PHP Encryption - Simple Encryption in PHP.
pg-ulid - ULID Functions for PostgreSQL
PHP SSH - An experimental object oriented SSH api in PHP
Dapper - Dapper - a simple object mapper for .Net
Themis - Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
True Random - Fetches random integers from random.org instead of using PHP's PRNG implementation
spec - The canonical spec for ulid
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.