参考地址:https://cmsdk.com/php/installing-symfony-project-with-php-7-3-version.html

Tryng to install (and after updating composer):

composer create-project symfony-cmf/sandbox cmf-sandbox

I have those errors:

Installing symfony-cmf/sandbox (2.0.0)
- Installing symfony-cmf/sandbox (2.0.0): Loading from cache
Created project in cmf-sandbox
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpcr/phpcr-utils 1.3.0 -> satisfiable by phpcr/phpcr-utils[1.3.0].
- phpcr/phpcr-utils 1.3.0 requires php ^5.6|7.0.x|7.1.x -> your PHP version (7.3.0) does not satisfy that requirement.
Problem 2
- phpcr/phpcr-utils 1.3.0 requires php ^5.6|7.0.x|7.1.x -> your PHP version (7.3.0) does not satisfy that requirement.
- doctrine/phpcr-odm 1.4.2 requires phpcr/phpcr-utils ^1.2.8 -> satisfiable by phpcr/phpcr-utils[1.3.0].
- Installation request for doctrine/phpcr-odm 1.4.2 -> satisfiable by doctrine/phpcr-odm[1.4.2].

Edit: Continuing the recommendation of Timo, I was able to install the project by executing the following:

composer create-project --ignore-platform-reqs symfony-cmf/sandbox cmf-sandbox

but I have obtained the following errors:

PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Warning: count(): Parameter must be an array or an object that implements Countable in /srv/http/symfony/cmf-sandbox/vendor/symfony-cmf/routing/src/ChainRouter.php:101
Stack trace:
#0 /srv/http/symfony/cmf-sandbox/vendor/symfony-cmf/routing/src/ChainRouter.php(308): Symfony\Cmf\Component\Routing\ChainRouter->all()
#1 /srv/http/symfony/cmf-sandbox/var/cache/dev/appDevDebugProjectContainer.php(1670): Symfony\Cmf\Component\Routing\ChainRouter->setContext(Object(Symfony\Component\Routing\RequestContext))
#2 /srv/http/symfony/cmf-sandbox/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(335): appDevDebugProjectContainer->getCmfRouting_RouterService()
#3 /srv/http/symfony/cmf-sandbox/var/cache/dev/appDevDebugProjectContainer.php(4955): Symfony\Component\DependencyInjection\Container->get('cmf_routing.rou...')
#4 /srv/http/symfony/cmf-sandbox/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(33 in /srv/http/symfony/cmf-sandbox/vendor/symfony-cmf/routing/src/ChainRouter.php on line 101

The project uses a Symfony version 3 structure and may have some incompatibility with PHP 7.3 (as Timo says).

Answer 1

You can tell Composer to ignore the PHP version requirements by adding --ignore-platform-reqs to the composer create-project command.

Else, you'll probably have to wait until the dependencies of symfony-cmf/sandbox get bumped to a later version.

最新文章

  1. MySQL 5.6 新参数对binlog日志量的优化
  2. if_nametoindex可以检查网卡名称是否有效
  3. C++ 画星号图形——空心正方形(核心代码)
  4. 洛谷P1263 || 巴蜀2311 宫廷守卫
  5. C++11—lambda函数
  6. mac中添加环境变量
  7. C++ 头文件系列(array)
  8. 阿里云ECS-Nginx阿里云客户端IP日志记录
  9. Python GUI之tkinter
  10. redis介绍、安装、redis持久化、redis数据类型
  11. 踩坑 —— Eclipse MAVEN编译
  12. GUI学习之八——复选框QCheckBox的学习总结
  13. 携带cookie的跨域访问
  14. 【树形期望DP】BZOJ3566- [SHOI2014]概率充电器
  15. 带你走进CSS定位详解
  16. du 统计文件夹大小
  17. Salt-API安装配置及使用
  18. openstack neutron中涉及的网络设备
  19. HDUOJ----2159 FATE
  20. 从网络得到数据--Arduino+以太网

热门文章

  1. npm搭建vue全过程
  2. RPC-基于原生java实现
  3. Codeforces 691E题解 DP+矩阵快速幂
  4. 数据挖掘 workfolw 总结
  5. 题解 P5265 【模板】多项式反三角函数
  6. Python 的 time 模块导入及其方法
  7. redis关闭和启动
  8. 【Matlab技巧】工作区变量如何添加到Simulink中?
  9. JSP2的自定义标签和方法
  10. 2018-8-10-cant-found-Microsoft.VSSDK.BuildTools.15.0.26201