wmc 1 year ago
commit 0d401273da
  1. 1
      .gitignore
  2. 15
      app/common/model/Goods.php
  3. 58
      app/common/model/ServerCategory.php
  4. 87
      app/common/model/server/Server.php
  5. 13
      app/store/controller/Goods.php
  6. 185
      app/store/controller/Server.php
  7. 52
      app/store/model/ServerCategory.php
  8. 69
      app/store/model/server/Server.php
  9. 2
      runtime/.gitignore
  10. 0
      vendor/.gitignore
  11. 42
      vendor/adbario/php-dot-notation/LICENSE.md
  12. 58
      vendor/adbario/php-dot-notation/composer.json
  13. 1218
      vendor/adbario/php-dot-notation/src/Dot.php
  14. 46
      vendor/adbario/php-dot-notation/src/helpers.php
  15. 2
      vendor/aferrandini/phpqrcode/.gitignore
  16. 330
      vendor/aferrandini/phpqrcode/LICENSE
  17. 4
      vendor/aferrandini/phpqrcode/VERSION
  18. 0
      vendor/aferrandini/phpqrcode/cache/frame_1.dat
  19. 0
      vendor/aferrandini/phpqrcode/cache/frame_1.png
  20. 0
      vendor/aferrandini/phpqrcode/cache/frame_10.dat
  21. 0
      vendor/aferrandini/phpqrcode/cache/frame_10.png
  22. 0
      vendor/aferrandini/phpqrcode/cache/frame_11.dat
  23. 0
      vendor/aferrandini/phpqrcode/cache/frame_11.png
  24. 0
      vendor/aferrandini/phpqrcode/cache/frame_12.dat
  25. 0
      vendor/aferrandini/phpqrcode/cache/frame_12.png
  26. 0
      vendor/aferrandini/phpqrcode/cache/frame_13.dat
  27. 0
      vendor/aferrandini/phpqrcode/cache/frame_13.png
  28. 0
      vendor/aferrandini/phpqrcode/cache/frame_14.dat
  29. 0
      vendor/aferrandini/phpqrcode/cache/frame_14.png
  30. 0
      vendor/aferrandini/phpqrcode/cache/frame_15.dat
  31. 0
      vendor/aferrandini/phpqrcode/cache/frame_15.png
  32. 0
      vendor/aferrandini/phpqrcode/cache/frame_16.dat
  33. 0
      vendor/aferrandini/phpqrcode/cache/frame_16.png
  34. 0
      vendor/aferrandini/phpqrcode/cache/frame_17.dat
  35. 0
      vendor/aferrandini/phpqrcode/cache/frame_17.png
  36. 0
      vendor/aferrandini/phpqrcode/cache/frame_18.dat
  37. 0
      vendor/aferrandini/phpqrcode/cache/frame_18.png
  38. 0
      vendor/aferrandini/phpqrcode/cache/frame_19.dat
  39. 0
      vendor/aferrandini/phpqrcode/cache/frame_19.png
  40. 0
      vendor/aferrandini/phpqrcode/cache/frame_2.dat
  41. 0
      vendor/aferrandini/phpqrcode/cache/frame_2.png
  42. 0
      vendor/aferrandini/phpqrcode/cache/frame_20.dat
  43. 0
      vendor/aferrandini/phpqrcode/cache/frame_20.png
  44. 0
      vendor/aferrandini/phpqrcode/cache/frame_21.dat
  45. 0
      vendor/aferrandini/phpqrcode/cache/frame_21.png
  46. 0
      vendor/aferrandini/phpqrcode/cache/frame_22.dat
  47. 0
      vendor/aferrandini/phpqrcode/cache/frame_22.png
  48. 0
      vendor/aferrandini/phpqrcode/cache/frame_23.dat
  49. 0
      vendor/aferrandini/phpqrcode/cache/frame_23.png
  50. 0
      vendor/aferrandini/phpqrcode/cache/frame_24.dat
  51. 0
      vendor/aferrandini/phpqrcode/cache/frame_24.png
  52. 0
      vendor/aferrandini/phpqrcode/cache/frame_25.dat
  53. 0
      vendor/aferrandini/phpqrcode/cache/frame_25.png
  54. 0
      vendor/aferrandini/phpqrcode/cache/frame_26.dat
  55. 0
      vendor/aferrandini/phpqrcode/cache/frame_26.png
  56. 0
      vendor/aferrandini/phpqrcode/cache/frame_27.dat
  57. 0
      vendor/aferrandini/phpqrcode/cache/frame_27.png
  58. 0
      vendor/aferrandini/phpqrcode/cache/frame_28.dat
  59. 0
      vendor/aferrandini/phpqrcode/cache/frame_28.png
  60. 0
      vendor/aferrandini/phpqrcode/cache/frame_29.dat
  61. 0
      vendor/aferrandini/phpqrcode/cache/frame_29.png
  62. 0
      vendor/aferrandini/phpqrcode/cache/frame_3.dat
  63. 0
      vendor/aferrandini/phpqrcode/cache/frame_3.png
  64. 0
      vendor/aferrandini/phpqrcode/cache/frame_30.dat
  65. 0
      vendor/aferrandini/phpqrcode/cache/frame_30.png
  66. 0
      vendor/aferrandini/phpqrcode/cache/frame_31.dat
  67. 0
      vendor/aferrandini/phpqrcode/cache/frame_31.png
  68. 0
      vendor/aferrandini/phpqrcode/cache/frame_32.dat
  69. 0
      vendor/aferrandini/phpqrcode/cache/frame_32.png
  70. 0
      vendor/aferrandini/phpqrcode/cache/frame_33.dat
  71. 0
      vendor/aferrandini/phpqrcode/cache/frame_33.png
  72. 0
      vendor/aferrandini/phpqrcode/cache/frame_34.dat
  73. 0
      vendor/aferrandini/phpqrcode/cache/frame_34.png
  74. 0
      vendor/aferrandini/phpqrcode/cache/frame_35.dat
  75. 0
      vendor/aferrandini/phpqrcode/cache/frame_35.png
  76. 0
      vendor/aferrandini/phpqrcode/cache/frame_36.dat
  77. 0
      vendor/aferrandini/phpqrcode/cache/frame_36.png
  78. 0
      vendor/aferrandini/phpqrcode/cache/frame_37.dat
  79. 0
      vendor/aferrandini/phpqrcode/cache/frame_37.png
  80. 0
      vendor/aferrandini/phpqrcode/cache/frame_38.dat
  81. 0
      vendor/aferrandini/phpqrcode/cache/frame_38.png
  82. 0
      vendor/aferrandini/phpqrcode/cache/frame_39.dat
  83. 0
      vendor/aferrandini/phpqrcode/cache/frame_39.png
  84. 0
      vendor/aferrandini/phpqrcode/cache/frame_4.dat
  85. 0
      vendor/aferrandini/phpqrcode/cache/frame_4.png
  86. 0
      vendor/aferrandini/phpqrcode/cache/frame_40.dat
  87. 0
      vendor/aferrandini/phpqrcode/cache/frame_40.png
  88. 0
      vendor/aferrandini/phpqrcode/cache/frame_5.dat
  89. 0
      vendor/aferrandini/phpqrcode/cache/frame_5.png
  90. 0
      vendor/aferrandini/phpqrcode/cache/frame_6.dat
  91. 0
      vendor/aferrandini/phpqrcode/cache/frame_6.png
  92. 0
      vendor/aferrandini/phpqrcode/cache/frame_7.dat
  93. 0
      vendor/aferrandini/phpqrcode/cache/frame_7.png
  94. 0
      vendor/aferrandini/phpqrcode/cache/frame_8.dat
  95. 0
      vendor/aferrandini/phpqrcode/cache/frame_8.png
  96. 0
      vendor/aferrandini/phpqrcode/cache/frame_9.dat
  97. 0
      vendor/aferrandini/phpqrcode/cache/frame_9.png
  98. 0
      vendor/aferrandini/phpqrcode/cache/mask_0/mask_101_0.dat
  99. 0
      vendor/aferrandini/phpqrcode/cache/mask_0/mask_105_0.dat
  100. 0
      vendor/aferrandini/phpqrcode/cache/mask_0/mask_109_0.dat
  101. Some files were not shown because too many files have changed in this diff Show More

1
.gitignore vendored

@ -1,3 +1,4 @@
/.idea
/.vscode
*.log
/vendor

@ -1,4 +1,5 @@
<?php
// +----------------------------------------------------------------------
// | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
@ -13,6 +14,8 @@ declare (strict_types=1);
namespace app\common\model;
use cores\BaseModel;
use think\db\BaseQuery;
use think\db\exception\DbException;
use think\model\relation\BelongsTo;
use think\model\relation\HasMany;
use think\Paginator;
@ -170,7 +173,7 @@ class Goods extends BaseModel
* @param array $param 查询条件
* @param int $listRows 分页数量
* @return mixed
* @throws \think\db\exception\DbException
* @throws DbException
*/
public function getList(array $param = [], int $listRows = 15)
{
@ -217,9 +220,9 @@ class Goods extends BaseModel
/**
* 检索查询条件
* @param array $param
* @return \think\db\BaseQuery
* @return BaseQuery
*/
private function getQueryFilter(array $param): \think\db\BaseQuery
private function getQueryFilter(array $param): BaseQuery
{
// 商品列表获取条件
$params = $this->setQueryDefaultValue($param, [
@ -246,7 +249,7 @@ class Goods extends BaseModel
// 商品分类
if ($params['categoryId'] > 0) {
// 关联商品与分类关系记录表
$GoodsCategoryRelName = (new GoodsCategoryRelModel)->getName();
$GoodsCategoryRelName = (new GoodsCategoryRelModel())->getName();
$query->join($GoodsCategoryRelName, "{$GoodsCategoryRelName}.goods_id = {$this->name}.goods_id");
// 设置分类ID条件
$query->where('goods_category_rel.category_id', '=', (int)$params['categoryId']);
@ -267,7 +270,9 @@ class Goods extends BaseModel
*/
protected function setGoodsListData($list, callable $callback = null)
{
if ($list->isEmpty()) return $list;
if ($list->isEmpty()) {
return $list;
}
// 遍历商品列表整理数据
foreach ($list as &$goods) {
$goods = $this->setGoodsData($goods, $callback);

@ -0,0 +1,58 @@
<?php
namespace app\common\model;
use cores\BaseModel;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\model\relation\HasOne;
class ServerCategory extends BaseModel
{
// 定义表名
protected $name = 'server_category';
// 定义主键
protected $pk = 'category_id';
/**
* 分类图片
* @return HasOne
*/
public function image(): HasOne
{
return $this->hasOne('UploadFile', 'file_id', 'image_id');
}
/**
* @notes:分类详情
* @param $where
* @param array $with
* @return static|array|null
* @author: wanghousheng
*/
public static function detail($where, array $with = [])
{
return static::get($where, $with);
}
/**
* @notes:获取全部记录
* @param array $where
* @return array
* @throws DataNotFoundException
* @throws DbException
* @throws ModelNotFoundException
* @author: wanghousheng
*/
public function getList(array $where = []): array
{
$where = $this->setQueryDefaultValue($where);
return $this->with(['image'])
->where($where)
->order(['sort', 'create_time'])
->select()
->toArray();
}
}

@ -0,0 +1,87 @@
<?php
namespace app\common\model\server;
use app\common\model\ServerCategory;
use app\common\model\UploadFile;
use cores\BaseModel;
use think\db\exception\DbException;
use think\model\concern\SoftDelete;
use think\model\relation\HasOne;
use think\Paginator;
class Server extends BaseModel
{
// 定义表名
protected $name = 'server';
// 定义主键
protected $pk = 'server_id';
use SoftDelete;
protected string $deleteTime = 'delete_time';
protected $defaultSoftDelete = 0;
/**
* 图片
* @return HasOne
*/
public function image(): HasOne
{
return $this->hasOne(UploadFile::class, 'file_id', 'image_id');
}
public function category(): HasOne
{
return $this->hasOne(ServerCategory::class, 'category_id', 'category_id');
}
/**
* @notes:服务详情
* @param $where
* @param array $with
* @return static|array|null
* @author: wanghousheng
*/
public static function detail($where, array $with = [])
{
return static::get($where, $with);
}
/**
* @notes:获取全部记录
* @param array $where
* @param int $listRows
* @param string $sort
* @param string $sort_type
* @return Paginator
* @throws DbException
* @author: wanghousheng
*/
public function getList(array $where = [], int $listRows = 15, string $sort = '', string $sort_type = 'desc'): Paginator
{
$where = $this->setQueryDefaultValue($where);
$sort_arr = ['sort' => $sort_type, 'create_time' => $sort_type];
if ($sort) {
$sort_arr = [$sort => $sort_type, 'create_time' => $sort_type];
}
return $this->with(['image'])->withJoin(['category' => ['category_id', 'name']])
->where($where)
->order($sort_arr)
->paginate($listRows);
}
/**
* 文章详情:HTML实体转换回普通字符
* @param $value
* @return string
*/
public function getContentAttr($value): string
{
return htmlspecialchars_decode($value);
}
}

@ -12,6 +12,7 @@ declare (strict_types=1);
namespace app\store\controller;
use think\db\exception\DbException;
use think\response\Json;
use cores\exception\BaseException;
use app\store\model\Goods as GoodsModel;
@ -26,13 +27,13 @@ class Goods extends Controller
/**
* 商品列表
* @return Json
* @throws \think\db\exception\DbException
* @throws DbException
*/
public function list(): Json
{
// 获取列表记录
$model = new GoodsModel;
$list = $model->getList($this->request->param());
$list= $model->getList($this->request->param());
return $this->renderSuccess(compact('list'));
}
@ -55,7 +56,7 @@ class Goods extends Controller
* @return Json
* @throws BaseException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function detail(int $goodsId): Json
@ -72,7 +73,7 @@ class Goods extends Controller
* @return Json
* @throws BaseException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function basic(int $goodsId): Json
@ -88,7 +89,7 @@ class Goods extends Controller
* @return Json
* @throws BaseException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function add(): Json
@ -106,7 +107,7 @@ class Goods extends Controller
* @return Json
* @throws BaseException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function edit(int $goodsId): Json

@ -0,0 +1,185 @@
<?php
namespace app\store\controller;
use app\store\model\server\Server as ServerModel;
use app\store\model\ServerCategory;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\response\Json;
class Server extends Controller
{
/**
* @notes:分类列表 10269
* @return Json
* @author: wanghousheng
*/
public function categoryList(): Json
{
$name = $this->request->post('name');
$where = [];
if (!empty($name)) {
$where[] = ['name', 'like', `%$name%`];
}
$model = new ServerCategory();
try {
$list = $model->getList($where);
} catch (DataNotFoundException|ModelNotFoundException|DbException $e) {
return $this->renderError($e->getMessage() ?: '接口异常');
}
return $this->renderSuccess(compact('list'));
}
/**
* @notes:添加分类
* @return Json
* @author: wanghousheng
*/
public function addCategory(): Json
{
$data = $this->postForm();
if (!$data) {
return $this->renderError('缺少必要参数');
}
$model = new ServerCategory();
if ($model->add($data)) {
return $this->renderSuccess('添加成功');
}
return $this->renderError($model->getError() ?: '添加失败');
}
/**
* @notes:编辑分类
* @param int $categoryId
* @return Json
* @author: wanghousheng
*/
public function editCategory(int $categoryId): Json
{
$data = $this->postForm();
if (!$data) {
return $this->renderError('缺少必要参数');
}
$model = ServerCategory::detail($categoryId);
if ($model->edit($data)) {
return $this->renderSuccess('编辑成功');
}
return $this->renderError($model->getError() ?: '编辑失败');
}
public function deleteCategory(int $categoryId): Json
{
$model = ServerCategory::detail($categoryId);
if ($model->remove()) {
return $this->renderSuccess('删除成功');
}
return $this->renderError('删除失败');
}
/**
* @notes:服务列表
* @return Json
* @author: wanghousheng
*/
public function serverList(): Json
{
// 获取列表记录
$model = new ServerModel();
$server_name = $this->request->post('server_name');
$category_id = intval($this->request->post('category_id'));
$status = intval($this->request->post('status'));
$where = [];
if ($server_name) {
$where[] = ['server.server_name', 'like', "%$server_name%"];
}
if ($category_id) {
$where[] = ['server.category_id', '=', $category_id];
}
if ($status) {
$where[] = ['server.status', '=', $status];
}
try {
$list = $model->getList($where);
} catch (DbException $e) {
return $this->renderError($e->getMessage());
}
return $this->renderSuccess(compact('list'));
}
public function ServerDetail(int $serverId): Json
{
// 获取商品详情
$model = new ServerModel;
$info = $model->getDetail($serverId);
return $this->renderSuccess(compact('info'));
}
/**
* @notes:添加服务
* @return Json
* @author: wanghousheng
*/
public function addServer(): Json
{
$data = $this->postForm();
if (!$data) {
return $this->renderError('缺少必要参数');
}
$model = new ServerModel();
if ($model->add($data)) {
return $this->renderSuccess('添加成功');
}
return $this->renderError($model->getError() ?: '添加失败');
}
/**
* @notes:编辑服务
* @param int $serverId
* @return Json
* @author: wanghousheng
*/
public function editServer(int $serverId): Json
{
$data = $this->postForm();
if (!$data) {
return $this->renderError('缺少必要参数');
}
$model = ServerModel::detail($serverId);
if ($model->edit($data)) {
return $this->renderSuccess('编辑成功');
}
return $this->renderError($model->getError() ?: '编辑失败');
}
/**
* @notes:删除服务
* @param array $serverId
* @return Json
* @author: wanghousheng
*/
public function deleteServer(array $serverId): Json
{
$model = new ServerModel;
if ($model->remove($serverId)) {
return $this->renderSuccess('删除成功');
}
return $this->renderError('删除失败');
}
/**
* 修改服务状态(上下架)
* @param array $serverIds 商品id集
* @param bool $state 为true表示上架
* @return Json
*/
public function serverStatus(array $serverIds, bool $state): Json
{
$model = new ServerModel;
if (!$model->setStatus($serverIds, $state)) {
return $this->renderError($model->getError() ?: '操作失败');
}
return $this->renderSuccess('操作成功');
}
}

@ -0,0 +1,52 @@
<?php
namespace app\store\model;
use app\common\model\ServerCategory as ServerCategoryModel;
/**
* 服务分类模型
* Class ServerCategory
* @package app\store\model
*/
class ServerCategory extends ServerCategoryModel
{
/**
* @notes:新增
* @param $data
* @return bool
* @author: wanghousheng
*/
public function add($data): bool
{
$data['store_id'] = self::$storeId;
return $this->save($data);
}
/**
* @notes:编辑
* @param $data
* @return bool
* @author: wanghousheng
*/
public function edit($data): bool
{
// 是否删除图片
!isset($data['image_id']) && $data['image_id'] = 0;
return $this->save($data) !== false;
}
/**
* @notes:删除
* @return bool
* @author: wanghousheng
*/
public function remove(): bool
{
if (!static::detail(['category_id' => $this['category_id']])) {
$this->error = '记录不存在';
return false;
}
return $this->delete();
}
}

@ -0,0 +1,69 @@
<?php
namespace app\store\model\server;
use app\common\model\server\Server as ServerModel;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
class Server extends ServerModel
{
/**
* @notes:新增
* @param $data
* @return bool
* @author: wanghousheng
*/
public function add($data): bool
{
$data['store_id'] = self::$storeId;
return $this->save($data);
}
/**
* @notes:编辑
* @param $data
* @return bool
* @author: wanghousheng
*/
public function edit($data): bool
{
// 是否删除图片
!isset($data['image_id']) && $data['image_id'] = 0;
return $this->save($data) !== false;
}
/**
* @notes:删除
* @param array $serverId
* @return bool
* @author: wanghousheng
*/
public function remove(array $serverId): bool
{
try {
return static::whereIn('server_id', $serverId)->select()->delete();
} catch (DataNotFoundException|ModelNotFoundException|DbException $e) {
return false;
}
}
/**
* 修改服务状态
* @param array $serverIds 商品id集
* @param bool $state 为true表示上架
* @return bool|false
*/
public function setStatus(array $serverIds, bool $state): bool
{
// 批量更新记录
return static::updateBase(['status' => $state ? 1 : 2], [['server_id', 'in', $serverIds]]);
}
public function getDetail(int $serverId)
{
return static::detail($serverId, ['image', 'category']);
}
}

@ -1,2 +1,2 @@
*
*
!.gitignore

@ -1,21 +1,21 @@
# The MIT License (MIT)
Copyright (c) 2016-2019 Riku Särkinen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# The MIT License (MIT)
Copyright (c) 2016-2019 Riku Särkinen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -1,29 +1,29 @@
{
"name": "adbario/php-dot-notation",
"description": "PHP dot notation access to arrays",
"keywords": ["dotnotation", "arrayaccess"],
"homepage": "https://github.com/adbario/php-dot-notation",
"license": "MIT",
"authors": [
{
"name": "Riku Särkinen",
"email": "riku@adbar.io"
}
],
"require": {
"php": ">=5.5",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.0|^6.0",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Adbar\\": "src"
}
}
}
{
"name": "adbario/php-dot-notation",
"description": "PHP dot notation access to arrays",
"keywords": ["dotnotation", "arrayaccess"],
"homepage": "https://github.com/adbario/php-dot-notation",
"license": "MIT",
"authors": [
{
"name": "Riku Särkinen",
"email": "riku@adbar.io"
}
],
"require": {
"php": ">=5.5",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.0|^6.0",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Adbar\\": "src"
}
}
}

File diff suppressed because it is too large Load Diff

@ -1,23 +1,23 @@
<?php
/**
* Dot - PHP dot notation access to arrays
*
* @author Riku Särkinen <riku@adbar.io>
* @link https://github.com/adbario/php-dot-notation
* @license https://github.com/adbario/php-dot-notation/blob/2.x/LICENSE.md (MIT License)
*/
use Adbar\Dot;
if (! function_exists('dot')) {
/**
* Create a new Dot object with the given items
*
* @param mixed $items
* @return \Adbar\Dot
*/
function dot($items)
{
return new Dot($items);
}
}
<?php
/**
* Dot - PHP dot notation access to arrays
*
* @author Riku Särkinen <riku@adbar.io>
* @link https://github.com/adbario/php-dot-notation
* @license https://github.com/adbario/php-dot-notation/blob/2.x/LICENSE.md (MIT License)
*/
use Adbar\Dot;
if (! function_exists('dot')) {
/**
* Create a new Dot object with the given items
*
* @param mixed $items
* @return \Adbar\Dot
*/
function dot($items)
{
return new Dot($items);
}
}

@ -1,165 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

@ -1,2 +1,2 @@
1.1.5
2012021604
1.1.5
2012021604

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 126 B

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

Before

Width:  |  Height:  |  Size: 213 B

After

Width:  |  Height:  |  Size: 213 B

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 211 B

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 211 B

Before

Width:  |  Height:  |  Size: 228 B

After

Width:  |  Height:  |  Size: 228 B

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 225 B

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 144 B

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 225 B

Before

Width:  |  Height:  |  Size: 235 B

After

Width:  |  Height:  |  Size: 235 B

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 226 B

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 220 B

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 244 B

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 232 B

Before

Width:  |  Height:  |  Size: 147 B

After

Width:  |  Height:  |  Size: 147 B

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 255 B

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 262 B

Before

Width:  |  Height:  |  Size: 253 B

After

Width:  |  Height:  |  Size: 253 B

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 243 B

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 267 B

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 189 B

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 199 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save