amiiiiink/hello-world
最新稳定版本:v1.1.6
Composer 安装命令:
composer require amiiiiink/hello-world
包简介
A simple Hello World Laravel package
README 文档
README
A simple Laravel package that returns a "Hello World" message.
This package is created for learning purposes and can be extended for more complex use cases.
📦 Installation
You can install the package via Composer:
composer require amiiiiink/hello-world
If you want to customize the message, you can publish the config file
php artisan vendor:publish --tag=hello-world-config
php artisan vendor:publish --tag="helloworld"
add
@import "../vendor/helloworld/helloworld.css";
into resources/css/app.css
then
npm install
then
npm run build
in web.php add below
Route::get('/hello-world', function () {
return view('helloworld::hello', [
'title' => 'سلام از پکیج',
'subtitle' => 'نسخهٔ جدید با Tailwind CSS'
]);
});
🚀 Usage
use VendorName\HelloWorld\Facades\HelloWorld;
echo HelloWorld::sayHello('amiiiiink');
// Output: Hello World
Helper Function
echo sayHello('amiiiiink');
// Output: Hello World
to find out helpers
php artisan package:generate-helpers
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-05