bristol-digital/spanish-dances
最新稳定版本:v1.0.1
Composer 安装命令:
composer require bristol-digital/spanish-dances
包简介
A simple Hello World package that displays random Spanish dance styles
README 文档
README
A simple "Hello World" PHP package that displays random Spanish dance styles. This package demonstrates basic Composer package structure published to Packagist.
Features
- Display a hello world message with a random Spanish dance style
- Get a random Spanish dance
- List all available Spanish dances
- PSR-4 autoloading
- PHP 8.0+ compatible
Installation
Via Composer
composer require bristol-digital/spanish-dances
Manual Installation
- Clone this repository
- Run
composer install
Usage
Basic Usage
<?php require_once 'vendor/autoload.php'; use BristolDigital\SpanishDance\SpanishDance; $spanishDance = new SpanishDance(); // Display hello world with a random Spanish dance echo $spanishDance->sayHello(); // Output: ¡Hola Mundo! Let's dance the Flamenco! 💃
Get Random Dance
$dance = $spanishDance->getRandomDance(); echo "Let's dance the {$dance}!";
Get All Dances
$allDances = $spanishDance->getAllDances(); print_r($allDances);
Running the Example
php example.php
Available Spanish Dances
- Flamenco
- Paso Doble
- Sevillanas
- Jota
- Bolero
- Fandango
- Sardana
- Muñeira
- Zambra
- Seguidilla
Published to Packagist
- Create a GitHub repository for this package
- Push your code to GitHub
- Go to Packagist.org
- Submit your GitHub repository URL
- Set up the GitHub service hook for auto-updates
Requirements
- PHP 8.0 or higher
License
MIT License
Author
Your Name (your.email@example.com)
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-20