Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Manage Events, Feature Flags, and More with PostHog for Laravel

    Manage Events, Feature Flags, and More with PostHog for Laravel

    June 7, 2024

    Laravel PostHog is a package integrating PostHog—a platform to analyze, test, observe, and deploy new features—with Laravel. It builds on top of the posthog-php package, offering a Facade and simplified configuration in your Laravel app:

    use QodeNLLaravelPosthogFacadesPosthog;

    Posthog::capture(‘event name’, [‘property’ => ‘value’]);

    PostHog has a variety of features that you can use, and the PHP/Laravel package specifically provides the following features that you can integrate:

    Event capture
    User identification
    Feature flags
    Group analytics
    Sending pageviews

    PostHog doesn’t have a Laravel Pennant feature flag driver, but you can use PostHog’s feature flags directly via the package:

    use QodeNLLaravelPosthogFacadesPosthog;

    Posthog::getAllFlags();
    Posthog::isFeatureEnabled(‘myFeatureFlagKey’);

    // Return true/false/payload (if set)
    Posthog::getFeatureFlag(‘myFeatureFlagKey’);

    You can learn more about this package, get full installation instructions, and view the source code on GitHub. The PostHog documentation has more examples of using this package with Laravel and PHP.

    The post Manage Events, Feature Flags, and More with PostHog for Laravel appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleA Breach in Trust: HopSkipDrive Data Leak Exposes Drivers’ Personal Information
    Next Article Newsletter #39: Build With AssemblyAI’s Integrations

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 15, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-30419 – NI Circuit Design Suite SymbolEditor Out-of-Bounds Read Vulnerability

    May 15, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Google researchers successfully found a zero-day vulnerability using LLM assisted vulnerability detection

    Development

    Now Generally Available: 7 New Resource Policies to Strengthen Atlas Security

    Databases

    Why Supply Chain Automation is Necessary for Business Growth?

    Development

    Meet BigCodeBench by BigCode: The New Gold Standard for Evaluating Large Language Models on Real-World Coding Tasks

    Development

    Highlights

    Pinecone previews new bulk import feature for its serverless offering

    August 29, 2024

    Pinecone, a vector database for scaling AI, is introducing a new bulk import feature to…

    Part 1: An Overview of the PDFBox Library

    June 26, 2024

    The AI Fix #39: AIs value their lives over yours, and flattery gets you nowhere

    February 25, 2025

    Purple Cracks

    July 3, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.