segmentio / analytics-php
Segment Analytics PHP Library
Installs: 15 885 431
Dependents: 26
Suggesters: 0
Security: 0
Stars: 253
Watchers: 51
Forks: 128
Open Issues: 2
Requires
- php: ^7.4 || ^8.0
- ext-json: *
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7
- overtrue/phplint: ^3.0
- php-parallel-lint/php-parallel-lint: ^1.3
- phpunit/phpunit: ~9.5
- roave/security-advisories: dev-latest
- slevomat/coding-standard: ^7.0
- squizlabs/php_codesniffer: ^3.6
Suggests
- ext-curl: For using the curl HTTP client
- ext-zlib: For using compression
- dev-master
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.8.0
- 1.7.0
- 1.6.1-beta
- 1.6.0-beta
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.0
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- dev-release/1.6.2
- dev-nd4p90x-patch-3
- dev-nd4p90x-patch-2
- dev-nd4p90x-patch-1
- dev-retry_network_error
- dev-update_e2e_test
- dev-release_1.6.0_fix
- dev-fix_libcurl_error
- dev-coding_style_fixer
- dev-rename-method
- dev-limit_messagesize
- dev-e2e_test
- dev-gzip_header
- dev-RFC7231
- dev-add_backoff
- dev-proxy_configuration
- dev-host_configurable
- dev-update-ci
- dev-set-default-context
- dev-update_set_context_method
- dev-add-context_consumer-to-all-events
- dev-lib_curl_consumer
This package is auto-updated.
Last update: 2024-11-15 17:40:42 UTC
README
analytics-php is a php client for Segment
⚠️ Maintenance ⚠️
This library is in maintenance mode. It will send data as intended, but receive no new feature support and only critical maintenance updates from Segment.
You can't fix what you can't measure
Analytics helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have product-market fit.
How to get started
- Collect analytics data from your app(s).
- The top 200 Segment companies collect data from 5+ source types (web, mobile, server, CRM, etc.).
- Send the data to analytics tools (for example, Google Analytics, Amplitude, Mixpanel).
- Over 250+ Segment companies send data to eight categories of destinations such as analytics tools, warehouses, email marketing and remarketing systems, session recording, and more.
- Explore your data by creating metrics (for example, new signups, retention cohorts, and revenue generation).
- The best Segment companies use retention cohorts to measure product market fit. Netflix has 70% paid retention after 12 months, 30% after 7 years.
Segment collects analytics data and allows you to send it to more than 250 apps (such as Google Analytics, Mixpanel, Optimizely, Facebook Ads, Slack, Sentry) just by flipping a switch. You only need one Segment code snippet, and you can turn integrations on and off at will, with no additional code. Sign up with Segment today.
Why?
-
Power all your analytics apps with the same data. Instead of writing code to integrate all of your tools individually, send data to Segment, once.
-
Install tracking for the last time. We're the last integration you'll ever need to write. You only need to instrument Segment once. Reduce all of your tracking code and advertising tags into a single set of API calls.
-
Send data from anywhere. Send Segment data from any device, and we'll transform and send it on to any tool.
-
Query your data in SQL. Slice, dice, and analyze your data in detail with Segment SQL. We'll transform and load your customer behavioral data directly from your apps into Amazon Redshift, Google BigQuery, or Postgres. Save weeks of engineering time by not having to invent your own data warehouse and ETL pipeline.
For example, you can capture data on any app:
analytics.track('Order Completed', { price: 99.84 })
Then, query the resulting data in SQL:
select * from app.order_completed order by price desc
🚀 Startup Program
If you are part of a new startup (<$5M raised, <2 years since founding), we just launched a new startup program for you. You can get a Segment Team plan (up to $25,000 value in Segment credits) for free up to 2 years — apply here!Documentation
Documentation is available at segment.com/docs/sources/server/php
Releasing
Run make release VERSION=<version>
. It should automatically tag and release in composer
License
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
(The MIT License)
Copyright (c) 2014 Segment Inc. friends@segment.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.