Download the PHP package tourze/jiguang-sms-bundle without Composer

On this page you can find all versions of the php package tourze/jiguang-sms-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package jiguang-sms-bundle

JiguangSmsBundle

中文

Latest Version PHP Version Quality Score Build Status Coverage Status Total Downloads

A Symfony bundle that integrates Jiguang (JPush) SMS service, providing SMS sending, signature management, template management, and verification code capabilities.

Table of Contents

Features

Installation

Configuration

Configure your Jiguang SMS credentials in your Symfony application:

Database Setup

The bundle requires database tables to store SMS data. Run the following commands to create them:

Bundle Registration

If you're not using Symfony Flex, manually register the bundle in config/bundles.php:

Quick Start

Basic SMS Sending

Verification Code

Available Commands

The bundle provides several console commands for automated synchronization:

Account Balance Synchronization

Synchronizes account balance information from Jiguang servers. Runs automatically every 10 minutes via cron.

Message Status Synchronization

Updates delivery status for sent SMS messages. Runs automatically every 5 minutes via cron.

Verification Code Status Synchronization

Checks and updates verification status for active verification codes. Runs automatically every minute via cron.

Signature Status Synchronization

Synchronizes signature approval status with Jiguang servers. Run manually as needed.

Template Status Synchronization

Updates template approval status from Jiguang servers. Run manually as needed.

Note: The cron jobs are automatically configured using the tourze/symfony-cron-job-bundle. Make sure your application has proper cron job scheduling set up.

Advanced Usage

Template and Signature Management

The bundle provides services for managing SMS templates and signatures:

Custom Request Handlers

You can create custom request handlers for specialized SMS operations:

Event Listeners

The bundle provides event subscribers for automatic processing:

Error Handling

The bundle provides specific exception types for error handling:

Security

Credentials Management

Rate Limiting

Implement rate limiting to prevent abuse:

Input Validation

Always validate phone numbers and message content:

Entities

The bundle provides the following Doctrine entities:

Core Entities

Entity Relationships

Entity Features

Services

Core Services

Repository Services

Service Features

Requirements

Troubleshooting

Common Issues

1. "Account not found" error

2. "Invalid signature" error

3. Database connection issues

4. Cron jobs not running

Debugging

Enable debug mode to see detailed API requests:

Performance Optimization

For high-volume SMS sending, consider:

  1. Batch Processing: Use queues for bulk SMS operations
  2. Connection Pooling: Configure HTTP client with connection pooling
  3. Caching: Cache frequently accessed account data
  4. Rate Limiting: Implement rate limiting to avoid API limits

Contributing

Please see CONTRIBUTING.md for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of jiguang-sms-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
doctrine/doctrine-bundle Version ^2.13
symfony/framework-bundle Version ^6.4
tourze/easy-admin-attribute Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-track-bundle Version 0.0.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/doctrine-user-bundle Version 0.0.*
tourze/http-client-bundle Version 0.0.*
tourze/symfony-cron-job-bundle Version 0.0.*
yiisoft/json Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tourze/jiguang-sms-bundle contains the following files

Loading the files please wait ...