Download the PHP package dominator88/laravel-smart without Composer

On this page you can find all versions of the php package dominator88/laravel-smart. 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-smart

laravel-smart

简介

安装步骤

为权限认证添加 模块,并设置为当前认证模型, 更改 confit/auth.php 文件

<?php

return [
'defaults' => [
    'guard' => 'admin',
    'passwords' => 'users',
],
'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'admin' => [
            'driver' => 'session',
            'provider' => 'admin',
        ],

        'api' => [
            'driver' => 'token',
            'provider' => 'users',
        ],
    ],
    'providers' => [
            'users' => [
                'driver' => 'eloquent',
                'model' => App\Models\User::class,
            ],
            'admin' => [
                'driver' => 'eloquent',
                'model' => Smart\Models\SysUser::class,
            ],

            // 'users' => [
            //     'driver' => 'database',
            //     'table' => 'users',
            // ],
        ],
        'passwords' => [
                'users' => [
                    'provider' => 'users',
                    'table' => 'password_resets',
                    'expire' => 60,
                ],
            ],

        ];

图片上传设置

图片上传设置,需要运行如下命令,为图片的路径建立软链接,如果安装环境为docker,需要自行进入项目目录bash,将软链接设置正确

        php artisan storage:link

如此便可以进行访问:

后台地址: http:// sitename /backend/index/index

帐户名: sys_admin

密码: 123123

邮箱:[email protected]

从项目根目录进入 public 目录,执行命令:

npm update

在此请注意 需要将 config/backend.php 里 baseUri 更改为当前域名 , 否则页面会出现样式错乱

不知道 npm 如何安装的可以在搜索引擎上查找。

创建模块

php artisan smart:install 模块名

创建模块后,需要在 .env 文件中将模块加入到 MODULE_EXT 配置中,以逗号分隔

执行上面命令后,会在app目录下生成对应模块

接口说明


接口uri <https:// sitename /api>

接口密钥 smart2_api_secret

header

名称 说明 描述
device 客户端系统类型 Apple iphone 7
device-os-version 客户端系统版本号 如: 10.0.2
timestamp 时间戳 如: 1476340001
signature 签名 如: 103ed1d081... 详见签名规则

body

所有键和值全部为字符串

{
  key1 : val1 ,
  key2 : val2,
  key2 : "[{k1 : v1} , { k2 : v2 }]" //用json字符串传输 数组
  ...
}

返回结果

签名规则


All versions of laravel-smart with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.5.*
cebe/markdown Version ^1.1
jpush/jpush Version ^3.5
laravel/tinker Version ~1.0
guzzlehttp/guzzle Version ^6.2@dev
toplan/laravel-sms Version ~2.6
intervention/image Version ^2.3@dev
laravel/dusk Version ^2.0@dev
overtrue/easy-sms Version 1.1.*
prettus/l5-repository Version ^2.6
spatie/laravel-permission Version ^2.36
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 dominator88/laravel-smart contains the following files

Loading the files please wait ....