定制 bristol-digital/spanish-dances 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Clone this repository
  2. 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

  1. Create a GitHub repository for this package
  2. Push your code to GitHub
  3. Go to Packagist.org
  4. Submit your GitHub repository URL
  5. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-20