Utopia

Utopia HTTP is a straightforward PHP MVC framework designed with essential features for professional web development that is simple, advanced, and secure. Developed and maintained by the Appwrite team, it ensures that users have a reliable tool at their fingertips.

One of the key advantages of Utopia HTTP is that it’s nearly free of dependencies. Additional features like authentication and caching are offered as separate models. This design choice keeps the core framework clean, lightweight, and user-friendly for those looking to learn.

  1. 1

    Installing the Messaging Component

    To send SMS via seven, use Utopia's official Messaging component. Install it with the following command:

    composer require utopia-php/messaging
    
  2. 2

    Sending SMS

    Use the service to send an SMS:

        <?php
    
        use \Utopia\Messaging\Messages\SMS;
        use \Utopia\Messaging\Adapter\SMS\Seven;
    
        $message = new SMS(
            to: ['+12025550139'],
            content: 'Hello World'
        );
    
        $messaging = new Seven('YOUR_API_KEY', 'Utopia');
        $messaging->send($message);