承接 imranwpsi/subscription 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

imranwpsi/subscription

最新稳定版本:v1.0.2

Composer 安装命令:

composer require imranwpsi/subscription

包简介

README 文档

README

  • Create a fresh laravel package
composer create-project laravel/laravel example-app
  • change directory to the new folder
cd example-app
  • When it's done you need to configure your env file and set your app key and other necessary details. In your terminal type:
cp .env.example .env
  • generate the app key
php artisan key:generate
  • create a folder called packages, then create a new folder called hossainVendor.

Note that you can subtitute hossainVendor with your own vendor name. Be sure to change the refrence in every other aspect of the app

  • clone this repository to the newly created folder
git clone https://github.com/imranwpsi/email-subscription.git packages/hossainVendor/EmailSubscription
  • Tell Laravel how to load our package and use it's functions, so inside the root of your Laravel app in the composer.json add this code:

"autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "HossainVendor\\EmailSubscription\\": "vendor/imranwpsi/subscription/src",
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "HossainVendor\\EmailSubscription\\": "vendor/imranwpsi/subscription/src",
            "Tests\\": "tests/"
        }
    },
  • Dump the composer autoloader
composer dump-autoload
  • Next, we need to add our new Service Provider in our bootstrap/providers.php inside the array:
return [
   App\Providers\AppServiceProvider::class,
   HossainVendor\EmailSubscription\SubscribeServiceProvider::class,
],
  • Migrate the database tables
php artisan migrate

And finally, start the application by running:

php artisan serve

Visit http://localhost:8000/subscription in your browser to view the demo.

If you want to include the project as a package to your app, run:

composer require imranwpsi/subscription

Built With

  • Laravel - The PHP framework for web artisans.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-14