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»Bento Laravel SDK

    Bento Laravel SDK

    November 1, 2024

    Bento Laravel SDK

    Bento is an Email Marketing & Automation Platform for Startups and their team recently created an official Laravel SDK.

    If this is your first time hearing of Bento and you are in need of an email marketing service, they do offer a free 30 day trial so you can give it a try.

    If you are an existing Bento user then this SDK helps to make it easier to send emails and track events in your Laravel applications. The package provides powerful and customizable APIs that can be used to manage your subscribers, track events, and send transactional emails. Low-level APIs have also been exposed so that you can build fully customizable experiences.

    To install the SDK you can run:

    composer require bentonow/bento-laravel-sdk
    

    Next, publish your config:

    php artisan vendor:publish --tag bentonow
    

    Then add a new mailer definition in config/mail.php:

    'bento' => [
      'transport' => 'bento',
    ],
    

    Lastly, update your .env file to add your Bento API keys:

    BENTO_PUBLISHABLE_KEY="bento-publishable-key"
    BENTO_SECRET_KEY="bento-secret-key"
    BENTO_SITE_UUID="bento-site-uuid"
    MAIL_MAILER="bento"
    

    As an example of its use, if you wanted to add a new subscriber to your account you could use the following code:

    use BentonowBentoLaravelFacadesBento;
    use BentonowBentoLaravelDataTransferObjectsCreateSubscriberData;
    
    $data = collect([
      new CreateSubscriberData(email: "test@laravel-news.com")
    ]);
    
    return Bento::createSubscriber($data)->json();
    

    And when you need to find a particular subscriber, you could use the following:

    use BentonowBentoLaravelFacadesBento;
    
    return Bento::findSubscriber("test@laravel-news.com")->json();
    

    There is a lot more you can do with this package and we hope to do a follow up tutorial to demonstrate more soon. Until then learn more about this package by reading the documentation and view the source code on Github.


    The post Bento Laravel SDK 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 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleLaravel Roundup – November
    Next Article Perficient Hyderabad’s Impact During Hunger Action Month

    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

    Enhancing Anomaly Detection with Adaptive Noise: A Pseudo Anomaly Approach

    Development

    Building Your Initial Next.js App

    Development

    Advances and Challenges in Drone Detection and Classification Techniques

    Development

    Robotic Vision in Debian: Mastering Image Processing and Object Recognition for Intelligent Robots

    Development

    Highlights

    Sign up for T-Mobile 5G home internet and get a $300 gift card free

    February 20, 2025

    Get cash and connection for less. T-Mobile is offering a free gift card when you…

    Enforce row-level security with the RDS Data API

    May 15, 2024

    Community News: Latest PECL Releases (07.23.2024)

    July 27, 2024

    Microsoft admits Windows 11 24H2 PCs with Dirac audio cannot play sound

    December 20, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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