试图安装催化剂/数据网格


Trying to install cartalyst/data-grid

我只是想知道是否有人遇到过这种情况,以及他们是如何解决的。

我正在尝试从Cartalyst安装数据网格,按照本手册。

。当我到达必须安装或更新的步骤时,命令提示符会显示这些错误或消息。

如果我运行"composer install":

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json.
You may be getting outdated dependencies. Run update to update them.
Generating autoload files
Generating optimized class loader

如果我在data-grid版本为2.0时运行"composer update" *:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package cartalyst/data-grid could not be found in any versio
n, there may be a typo in the package name.
Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
 problems.

如果我用任何其他版本运行"composer update",它只是说找不到存储库。

只是为了补充这个线程,这是我的composer.json。

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
    "laravel/framework": "4.1.*",
    "cartalyst/data-grid": "dev-master",
    "dompdf/dompdf": "dev-develop"
},
"repositories": [
{
    "type": "composer",
    "url": "http://packages.cartalyst.com"
}
],
"autoload": {
    "classmap": [
        "app/commands",
        "app/controllers",
        "app/models",
        "app/database/migrations",
        "app/database/seeds",
        "app/tests/TestCase.php"
    ]
},
"scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},
"config": {
    "preferred-install": "dist"
},
"minimum-stability": "stable"
}
如果你能帮我这个忙,我会很感激的。或者至少建议另一个数据网格扩展,而不是phpGrid或jQGrid,因为我已经使用过这些并且不喜欢它们。但我确实想要一个可排序的网格,并集成了搜索。

尝试将"minimum-stability"从"stable"改为"dev",并添加"prefer-stable":true但请注意,数据网格需要订阅催化剂(每3个月75美元)