luberius/tailwindcss 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

luberius/tailwindcss

最新稳定版本:v1.0.1

Composer 安装命令:

composer require luberius/tailwindcss

包简介

A Tailwind CSS package for PHP projects

README 文档

README

A PHP package for integrating TailwindCSS into your projects. This package provides an easy way to download and use the TailwindCSS executable in your PHP applications.

Requirements

  • PHP 8.0 or higher
  • Composer

Installation

You can install this package via Composer. Run the following command in your project directory:

composer require luberius/tailwindcss

Usage

Here's a basic example of how to use the TailwindCSS package:

use Luberius\TailwindCss\TailwindCss;

// Initialize TailwindCSS
$tailwind = new TailwindCss();

// Get the path to the TailwindCSS executable
$executablePath = $tailwind->getBinPath();

// Generate a watch command
$watchCommand = $tailwind->getWatchCommand('input.css', 'output.css');

// Use the watch command in your application
// For example, you might execute it using proc_open() or similar

Configuration

The package will automatically determine the correct executable for your operating system and architecture. The executable will be downloaded to the vendor/bin directory when installed via Composer.

Development

To set up the project for development:

  1. Clone the repository
  2. Run composer install to install dependencies
  3. Run composer test to run the test suite

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-21