Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bits Laravel Package

glhd/bits

Generate unique 64-bit IDs in PHP for distributed systems. Create Twitter Snowflake, Sonyflake, or custom bit-sequence identifiers. Configure worker/datacenter IDs and a custom epoch to avoid collisions across servers.

View on GitHub
Deep Wiki
Context7
0.6.2
0.6.1
0.6.0
0.5.0

Added

  • Added support for $snowflake->toDateTime() and $snowflake->toCarbon() which allows you to get the timestamp associated with the ID.
  • Added firstForTimestamp($timestamp) method that lets you create an ID that corresponds to the lowest possible ID at that timestamp (useful for querying)
  • Added Livewire synths

Changed

  • Bits no longer follows Carbon::setTestNow and instead provides its own setTestNow method (see reasoning).
  • Added .gitattributes to minimize bundle size
0.4.1
0.4.0
0.3.0

Added

  • Added a snowflake_id() helper method to avoid Snowflake::make()->id() calls everywhere

Changed

  • Improved exception message when trying to set epoch to a future date
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1

Keep a Changelog Syntax

  • Added for new features.
  • Changed for changes in existing functionality.
  • Deprecated for soon-to-be removed features.
  • Removed for now removed features.
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/entity-migrator
codraw/doctrine-extra
codraw/aws-tool-kit
codraw/validator
codraw/workflow
codraw/open-api
codraw/cron-job
codraw/process
codraw/log
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony