64robots/checkout
Composer 安装命令:
composer require 64robots/checkout
包简介
Checkout Package.
关键字:
README 文档
README
Checkout
This package provides API endpoints and common functionality for cart, checkout, orders and coupons. You can use it with your own UI or use Checkout Vue package that works with this API out of the box.
Installation
You can install this package via composer:
composer require 64robots/checkout
Once installed, this package will automatically register its service provider.
You can publish the package migrations with:
php artisan vendor:publish --provider="R64\Checkout\CheckoutServiceProvider" --tag="migrations"
After the migrations have been published, you can create package tables with:
php artisan migrate
By running migrations, these tables will be created:
customersproductscartcart_itemsordersorder_itemscouponsorder_purchases
You can also publish the package config with:
php artisan vendor:publish --provider="R64\Checkout\CheckoutServiceProvider" --tag="config"
After the config has been published, you can find it's contents in config/checkout.php
return [ /* * Required parameters when submitting an order to /api/orders endpoint */ 'required' => [ 'customer_email', 'shipping_first_name', 'shipping_last_name', 'shipping_address_line1', // 'shipping_address_line2', 'shipping_address_city', 'shipping_address_region', 'shipping_address_zipcode', 'shipping_address_phone', 'billing_first_name', 'billing_last_name', 'billing_address_line1', // 'billing_address_line2', 'billing_address_city', 'billing_address_region', 'billing_address_zipcode', 'billing_address_phone', ], /* * Terms and conditions url used usually in the checkout UI */ 'toc_url' => '#', /* * Currency code that will be saved with every order and symbol * that is usually used in the Cart, Checkout and Order UI */ 'currency' => [ 'code' => env('CHECKOUT_CURRENCY_CODE', 'USD'), 'symbol' => env('CHECKOUT_CURRENCY_SYMBOL', '$') ], /* * Percentage of Cart total and fixed fee will be stored for every * order purchase (transaction) */ 'stripe' => [ 'percentage_fee' => env('CHECKOUT_STRIPE_PERCENTAGE_FEE', 29 / 1000), 'fixed_fee' => env('CHECKOUT_STRIPE_FIXED_FEE', 30) ], /* * Shipping city and state is automatically resolved from zip code * using GeoNames service http://www.geonames.org/ * * Country code constraints the search results * to specific country */ 'geo_names' => [ 'username' => env('CHECKOUT_GEO_NAMES_USERNAME', 'demo'), 'country_code' => env('CHECKOUT_GEO_NAMES_COUNTRY_CODE', 'US') ], /* * Class names can be replaced and extended with your own logic */ 'product_model' => R64\Checkout\Models\Product::class, 'customer_model' => R64\Checkout\Models\Customer::class, 'cart_model' => R64\Checkout\Models\Cart::class, 'cart_item_model' => R64\Checkout\Models\CartItem::class, 'coupon_model' => R64\Checkout\Models\Coupon::class, 'order_model' => R64\Checkout\Models\Order::class, 'order_item_model' => R64\Checkout\Models\OrderItem::class, 'product_resource' => R64\Checkout\Http\Resources\ProductResource::class, 'payment' => R64\Checkout\StripePaymentHandler::class ];
Nova
You can publish nova resources with:
php artisan vendor:publish --provider="R64\Checkout\CheckoutServiceProvider" --tag="nova"
Available API Endpoints
Once you install the package and run migrations, these API endpoints will be available in your application.
Licence
Checkout is open-source software licensed under the MIT license
64robots/checkout 适用场景与选型建议
64robots/checkout 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.88k 次下载、GitHub Stars 达 38, 最近一次更新时间为 2021 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「checkout」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 64robots/checkout 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 64robots/checkout 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 64robots/checkout 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Adds a 'checkout' to a SilverStripe site which links to an Estimate and adds the ability to setup and pay
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
Add a simple webshop to your Laravel project
Alfabank REST API integration
Customer notes for Contao Isotope eCommerce checkout.
统计信息
- 总下载量: 2.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-12