# pecl_snowflake **Repository Path**: alvinor/pecl_snowflake ## Basic Information - **Project Name**: pecl_snowflake - **Description**: An implementation of twitter's snowflake with C , build in php extension. - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 0 - **Created**: 2019-12-09 - **Last Updated**: 2025-06-30 ## Categories & Tags **Categories**: distributed-service **Tags**: None ## README # snowflake An implementation of twitter's snowflake with C , build in php extension. ### Install ``` $ git clone https://github.com/alvinor/pecl_snowflake.git $ cd pecl_snowflake $ phpize $ ./configure $ make && make install ``` ### Initial ``` extension = snowflake.so ``` ### Functions ``` snowflake_id(int $work_node = 0) $work_node: An uniq ID should between 0 and 1023 ``` ### Demo ```php