Download the PHP package rayjun/laravel-order without Composer

On this page you can find all versions of the php package rayjun/laravel-order. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-order

laravel-order

laravel 框架中的 order 组件。

安装

可以直接在命令行中安装:

composer require "rayjun/laravel-order:1.0.*"

或者可以在你项目中 composer.json 中加入以下代码:

"require": {
    "rayjun/laravel-order": "1.0.*"
}

然后再执行:

composer update

在完成上面的安装之后,可以在 config/app.php 中的 providers 数组中增加以下代码:

'Rayjun\LaravelOrder\LaravelOrderServiceProvider'

然后增加一行到

'Order'   => 'Rayjun\LaravelOrder\Facades\Order',

使用

创建一个订单

Order Order::order(array $items, int $user_id);

获取一个订单

Order Order::getOrder($order_id);

获取用户的订单

Collection Order::getUserOrders($user_id);

更改订单状态

boolean Order::updateStatus(int $order_id, string $status);

删除一个订单

boolean Order::deleteOrder(int $order_id);

更新订单项数量

OrderItem Order::updateQty(int $item_id, int qty);

计算订单总价格

float Order::total($order_id);

计算商品总数量

int Order::count($order_id);

更新订单商品数量和总价

boolean Order::updateOrder($order_id);

All versions of laravel-order with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.0.*|5.1.*
illuminate/config Version 5.0.*|5.1.*
illuminate/database Version 5.0.*|5.1.*
illuminate/console Version 5.0.*|5.1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rayjun/laravel-order contains the following files

Loading the files please wait ....