Buen día! Segui la siguiente guía de instalación: https://foro.comunidad.siu.edu.ar/index.php?topic=21387.0
Tambien use algunas de las indicaciones del readme que tiene el framework. Como alterar el composer.json con la version de toba a descargar.
Quedo así:
{
"name": "siu-toba3/framework",
"description": "Framework de desarrollo web",
"authors": [
{
"name": "SIU",
"email": "toba@siu.edu.ar"
}
],
"require": {
"ext-psr/ext-psr": "^1.2",
"siu-toba/framework": "~3.3",
"php": ">=7.3",
"ext-curl": "*",
"dapphp/securimage": "~3.6",
"guiguiboy/php-cli-progress-bar": "dev-master",
"guzzlehttp/guzzle": "~6.5",
"ioncube/php-openssl-cryptor": "dev-master",
"nikic/php-parser": "~4.4",
"onelogin/php-saml": "~3.4",
"paragonie/random-lib": "~2.0",
"phpmailer/phpmailer": "~6.5.0",
"phpoffice/phpspreadsheet": "~1.23",
"psr/log": "~1.1",
"rospdf/pdf-php": "~0.12",
"siu-toba/numbers_words": "0.18.0.1",
"siu-toba/rest": "~2.0",
"siu-toba/services_json": "^1.0.3.3",
"siu-toba/ssl-cert-utils": "~1.0",
"siu-toba/structures_graph": "^1.1.1.1",
"siu/arai-json-migrator": "~1.1",
"siu/manejador-salida-toba": "~1.1",
"siu/interfaces-manejador-salida-toba": "~1.2.0",
"siu/security-multitool": "~1.1",
"symfony/yaml": "~4.4",
"vlucas/phpdotenv": "~3.6"
},
"conflict": {
"siu/arai-cli": "<3.0.0",
"siu/interfaces-manejador-salida-toba": "<1.2.0"
},
"require-dev": {
"greenlion/php-sql-parser": "@dev",
"php-webdriver/webdriver": "~1.8",
"simpletest/simpletest": "~1.2",
"siu-toba/text_highlighter": "~0.8",
"siu/arai-cli": "*",
"siu/arai-crypto": "*",
"siu/arai-json-parser": "*",
"siu/manejador-salida-bootstrap": "~1.3"
},
"suggest": {
"simplesamlphp/simplesamlphp": "Permite conectarse a un IDP centralizado (see onelogin)",
"siu/arai-cli": "Librería cliente de los componentes ARAI",
"siu/arai-reportes": "Permite imprimir reportes via un servidor Jasper desde SIU-Toba",
"siu/manejador-salida-bootstrap": "Permite generar un marcado HTML responsive",
"siu/rdi": "Permite almacenar documentos en un ECM"
},
"autoload": {
"psr-4": {
"SIUToba\\Framework\\": "src/SIUToba/"
}
},
"repositories": [
{
"type": "composer",
"url": "https://satis.siu.edu.ar",
"exclude": ["siu-toba/rest"]
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"bin": [
"bin/toba",
"bin/toba_docker"
],
"scripts": {
"post-install-cmd": [
"yarn add ckeditor4@4.18 jquery@3.6 jquery-migrate@3.3 siu-js-app-launcher@1.0.6 --modules-folder www/js/packages/",
"yarn ",
"php bin/instalar_assets.php"
],
"post-update-cmd": [
"yarn --non-interactive --modules-folder www/js/packages/",
"php bin/instalar_assets.php"
]
}
}
Y si bien pude instalar las dependencias con “composer install” sin problemas, al utilizar “composer update”. Me sale el siguiente error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires PHP extension ext-psr/ext-psr ^1.2 but it is missing from your system. Install or enable PHP's psr/ext-psr extension.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/15-psr.ini
- /etc/php/7.4/cli/conf.d/15-xml.ini
- /etc/php/7.4/cli/conf.d/20-amqp.ini
- /etc/php/7.4/cli/conf.d/20-ast.ini
- /etc/php/7.4/cli/conf.d/20-bcmath.ini
- /etc/php/7.4/cli/conf.d/20-bz2.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-curl.ini
- /etc/php/7.4/cli/conf.d/20-dba.ini
- /etc/php/7.4/cli/conf.d/20-dom.ini
- /etc/php/7.4/cli/conf.d/20-enchant.ini
- /etc/php/7.4/cli/conf.d/20-excimer.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-facedetect.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gd.ini
- /etc/php/7.4/cli/conf.d/20-gearman.ini
- /etc/php/7.4/cli/conf.d/20-geoip.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-gmp.ini
- /etc/php/7.4/cli/conf.d/20-gnupg.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-igbinary.ini
- /etc/php/7.4/cli/conf.d/20-imagick.ini
- /etc/php/7.4/cli/conf.d/20-imap.ini
- /etc/php/7.4/cli/conf.d/20-intl.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-ldap.ini
- /etc/php/7.4/cli/conf.d/20-lua.ini
- /etc/php/7.4/cli/conf.d/20-lz4.ini
- /etc/php/7.4/cli/conf.d/20-mbstring.ini
- /etc/php/7.4/cli/conf.d/20-mcrypt.ini
- /etc/php/7.4/cli/conf.d/20-memcache.ini
- /etc/php/7.4/cli/conf.d/20-mongodb.ini
- /etc/php/7.4/cli/conf.d/20-msgpack.ini
- /etc/php/7.4/cli/conf.d/20-mysqli.ini
- /etc/php/7.4/cli/conf.d/20-oauth.ini
- /etc/php/7.4/cli/conf.d/20-odbc.ini
- /etc/php/7.4/cli/conf.d/20-pcov.ini
- /etc/php/7.4/cli/conf.d/20-pdo_dblib.ini
- /etc/php/7.4/cli/conf.d/20-pdo_firebird.ini
- /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.4/cli/conf.d/20-pdo_odbc.ini
- /etc/php/7.4/cli/conf.d/20-pdo_pgsql.ini
- /etc/php/7.4/cli/conf.d/20-pdo_sqlite.ini
- /etc/php/7.4/cli/conf.d/20-pgsql.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-pinba.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-propro.ini
- /etc/php/7.4/cli/conf.d/20-ps.ini
- /etc/php/7.4/cli/conf.d/20-pspell.ini
- /etc/php/7.4/cli/conf.d/20-psr.ini
- /etc/php/7.4/cli/conf.d/20-radius.ini
- /etc/php/7.4/cli/conf.d/20-raphf.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-redis.ini
- /etc/php/7.4/cli/conf.d/20-rrd.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-simplexml.ini
- /etc/php/7.4/cli/conf.d/20-smbclient.ini
- /etc/php/7.4/cli/conf.d/20-snmp.ini
- /etc/php/7.4/cli/conf.d/20-soap.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-solr.ini
- /etc/php/7.4/cli/conf.d/20-sqlite3.ini
- /etc/php/7.4/cli/conf.d/20-ssh2.ini
- /etc/php/7.4/cli/conf.d/20-stomp.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tideways.ini
- /etc/php/7.4/cli/conf.d/20-tidy.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-uopz.ini
- /etc/php/7.4/cli/conf.d/20-uploadprogress.ini
- /etc/php/7.4/cli/conf.d/20-uuid.ini
- /etc/php/7.4/cli/conf.d/20-xdebug.ini
- /etc/php/7.4/cli/conf.d/20-xhprof.ini
- /etc/php/7.4/cli/conf.d/20-xmlreader.ini
- /etc/php/7.4/cli/conf.d/20-xmlrpc.ini
- /etc/php/7.4/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.4/cli/conf.d/20-xsl.ini
- /etc/php/7.4/cli/conf.d/20-yaml.ini
- /etc/php/7.4/cli/conf.d/20-zip.ini
- /etc/php/7.4/cli/conf.d/20-zmq.ini
- /etc/php/7.4/cli/conf.d/25-http.ini
- /etc/php/7.4/cli/conf.d/25-mailparse.ini
- /etc/php/7.4/cli/conf.d/25-memcached.ini
- /etc/php/7.4/cli/conf.d/25-swoole.ini
- /etc/php/7.4/cli/conf.d/30-decimal.ini
- /etc/php/7.4/cli/conf.d/30-ds.ini
- /etc/php/7.4/cli/conf.d/30-grpc.ini
- /etc/php/7.4/cli/conf.d/30-inotify.ini
- /etc/php/7.4/cli/conf.d/30-maxminddb.ini
- /etc/php/7.4/cli/conf.d/30-protobuf.ini
- /etc/php/7.4/cli/conf.d/30-rdkafka.ini
- /etc/php/7.4/cli/conf.d/30-vips.ini
- /etc/php/7.4/cli/conf.d/30-zstd.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Trate de solucionar la falta de “ext-psr/ext-psr ^1.2”, pero no logre hacerlo.