Download the PHP package tourze/youzan-api-bundle without Composer
On this page you can find all versions of the php package tourze/youzan-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package youzan-api-bundle
youzan-api-bundle
中文
[]
(https://packagist.org/packages/tourze/youzan-api-bundle)
[
]
(https://packagist.org/packages/tourze/youzan-api-bundle)
[
]
(https://packagist.org/packages/tourze/youzan-api-bundle)
[
]
(https://packagist.org/packages/tourze/youzan-api-bundle)
A Symfony bundle for integrating with Youzan API, providing account and shop management capabilities.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- Configuration
- Entities
- Admin Interface
- Advanced Usage
- Security
- Performance Tips
- Changelog
- Contributing
- License
Features
- Account management for Youzan API credentials
- Shop management with multi-account support
- Client service for easy API access
- EasyAdmin integration for backend management
- Doctrine ORM integration with Snowflake ID support
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher
- youzanyun/open-sdk 2.0 or higher
- EasyAdmin Bundle 4.0 or higher
Installation
Quick Start
-
Add the bundle to your
bundles.php: -
Create and manage Youzan accounts:
- Use the client to call Youzan API:
Configuration
The bundle registers services automatically. For production use, configure your environment variables:
Entities
Account
- Manages Youzan API credentials (Client ID, Client Secret)
- Supports multiple shops per account
Shop
- Represents Youzan shops with KDT ID
- Can be associated with multiple accounts
Admin Interface
The bundle provides EasyAdmin controllers for managing accounts and shops:
- Account management: Create, edit, and delete API accounts
- Shop management: Manage shop information and associations
Advanced Usage
For more advanced scenarios, you can extend the entities or create custom services:
Security
Reporting Security Issues
If you discover a security vulnerability, please send an email to [email protected]. All security vulnerabilities will be promptly addressed.
Security Best Practices
- Store API credentials securely using environment variables
- Use HTTPS for all API communications
- Regularly rotate API credentials
- Implement proper access controls for admin interfaces
Performance Tips
- Cache API responses when possible to reduce API calls
- Use batch operations for multiple API requests
- Implement connection pooling for high-volume scenarios
- Monitor API rate limits and implement backoff strategies
Changelog
Version 1.0.0
- Initial release with basic account and shop management
- EasyAdmin integration for backend management
- Youzan API client service with automatic token handling
Contributing
We welcome contributions! Here's how you can help:
- Report Issues: Use GitHub Issues to report bugs or request features
- Submit Pull Requests: Fork the repository and submit PRs for improvements
- Code Style: Follow PSR-12 coding standards
- Testing: Ensure all tests pass before submitting PRs
Development Setup
License
The MIT License (MIT). Please see License File for more information.
All versions of youzan-api-bundle with dependencies
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/twig-bundle Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-snowflake-bundle Version 1.0.*
tourze/doctrine-timestamp-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
youzanyun/open-sdk Version ^2.0