faheem2407/helloworld
最新稳定版本:v1.0.0
Composer 安装命令:
composer require faheem2407/helloworld
包简介
Testing package
README 文档
README
This is Just a basic "hello world package" created by me using composer you can use it inside your laravel project to see the output.
what's inside ?
There is just a Class SayHi.php
How to use it ?
Just create a fresh laravel project : composer create-project laravel/laravel YourProjectName
Then go YourProject folder : cd YourProjectName
To use my package: composer require faheem2407/helloworld
Then :
1.create a route
2.use Faheem2407\Helloworld\SayHi;
3.inside your closure just make an instance of this class pass yourName as a parameter : new SayHi("yourName");
It will show you the output like the following :
Output:
Hi yourName welcome to our testing helloworld package
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-02