siu-toba / framework
Web开发框架
Requires
- php: >=7.3
- ext-curl: *
- dapphp/securimage: dev-nextgen
- guiguiboy/php-cli-progress-bar: dev-master
- guzzlehttp/guzzle: ~7.8
- guzzlehttp/psr7: ~2.4
- ioncube/php-openssl-cryptor: dev-master
- laminas/laminas-escaper: ~2.13.0
- nikic/php-parser: ~4.0
- onelogin/php-saml: ~4.0
- paragonie/random-lib: ~2.0
- phpmailer/phpmailer: ~6.8.0
- phpoffice/phpspreadsheet: ~1.29
- psr/log: ~1.0|~2.0|~3.0
- rospdf/pdf-php: ~0.12
- siu-toba/numbers_words: 0.18.0.1
- siu-toba/rest: ~3.1
- siu-toba/services_json: ^1.0.3.3
- siu-toba/ssl-cert-utils: ~1.0
- siu-toba/structures_graph: ~1.2
- siu/arai-json-migrator: ~2.0
- siu/interfaces-manejador-salida-toba: ~1.4
- siu/manejador-salida-toba: ~1.2
- symfony/security-csrf: ^5.4
- symfony/yaml: ~4.4|~5.4|~6.0
- vlucas/phpdotenv: ~5.6
Requires (Dev)
- greenlion/php-sql-parser: @dev
- php-webdriver/webdriver: ~1.8
- simpletest/simpletest: *
- siu/arai-cli: *
- siu/arai-crypto: *
- siu/arai-json-parser: *
- siu/manejador-salida-bootstrap: ~1.4
Suggests
- 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
Conflicts
- siu/arai-cli: <3.0.0
- siu/interfaces-manejador-salida-toba: <1.2.0
- dev-develop
- v3.4.6
- v3.4.5
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.0
- v3.3.26
- v3.3.25
- v3.3.24
- v3.3.23
- v3.3.22
- v3.3.21
- v3.3.20
- v3.3.19
- v3.3.18
- v3.3.17
- v3.3.16
- v3.3.15
- v3.3.14
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.22
- v3.2.21
- v3.2.20
- 3.2.19
- v3.2.18
- v3.2.17
- v3.2.16
- v3.2.15
- v3.2.14
- v3.2.13
- v3.2.12
- v3.2.11
- v3.2.10
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.18
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- 3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.32
- v3.0.31
- v3.0.30
- v3.0.29
- v3.0.28
- v3.0.27
- v3.0.26
- v3.0.25
- v3.0.24
- v3.0.23
- v3.0.22
- v3.0.21
- v3.0.20
- v3.0.19
- v3.0.18
- v3.0.17
- v3.0.16
- v3.0.15
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- 3.0.1
- v3.0.0
- dev-master
- dev-dependabot/composer/phpoffice/phpspreadsheet-1.29.1
- dev-dependabot/composer/phpoffice/phpspreadsheet-2.2.1
- dev-feature/chngRestExceptions
- dev-support/v3.3
- dev-feature/newPHPDocumentor
- dev-feature/perfilesAlternativos
- dev-feature/madCookie
- dev-feature/phpStanScan
- dev-feature/replaceSecurityMultiTool
- dev-support/v3.1
- dev-support/v3.2
- dev-feature/loadFromVendor
- dev-feature/PDST
- dev-feature/theLoggerBeneath
- dev-feature/flexLogger
- dev-feature/testRest3
- dev-feature/updateAnalytics
- dev-support/v3.0
This package is auto-updated.
Last update: 2024-09-05 15:11:54 UTC
README
SIU-Toba
快速开发Web应用程序的框架
先决条件
从头创建项目
要使用SIU-Toba从头创建项目,我们将使用GitHub上的空项目模板,建议直接从https://github.com/SIU-Toba/template-proyecto-toba
下载zip文件,注意版本号。接下来,我们编辑composer.json
文件,以定义将包含项目的包名称,并添加或修改项目所需包的选项。完成此步骤后,我们执行
composer install
然后,按照下面的说明继续安装SIU-Toba。
最后一步是通过以下命令创建项目本身
toba proyecto crear -p nombre_proyecto -d `pwd`
完成此步骤后,重新启动web服务器,使用浏览器访问https:///toba_editor/$nro_version$
并开始构建项目。
通过composer将现有项目迁移到安装
要将现有项目迁移到SIU-Toba的新安装机制,可以采取以下两种途径
- 遵循从头创建项目的程序,然后覆盖当前项目的内容。
- 另一种选择是执行以下步骤
在项目目录内创建一个composer.json
文件,其中指定该文件的数据,然后继续执行以下步骤以包含必要的存储库。
然后按照前面提到的进行SIU-Toba的安装,然后使用以下命令加载项目
toba proyecto cargar -p nombre_proyecto -d `pwd`
安装SIU-Toba
从版本3.0开始,SIU-Toba的下载完全通过composer进行,为此,必须在项目的composer.json
文件中添加以下行
"repositories": [ { "type": "composer", "url": "https://satis.siu.edu.ar", "exclude": ["siu-toba/framework", "siu-toba/rest"] } ], "require": { "siu-toba/framework": "~3.3" }, "scripts": { "post-install-cmd": [ "composer run-script post-install-cmd -d ./vendor/siu-toba/framework/" ], "post-update-cmd": [ "composer run-script post-install-cmd -d ./vendor/siu-toba/framework/" ] }, "minimum-stability": "dev", "prefer-stable" : true
然后根据我们使用composer的方式执行实际的下载。为此,我们可以使用以下命令
composer install
或
composer update siu-toba/framework
执行这些命令后,我们继续安装SIU-Toba,首先通过以下方式定义实例名称和安装目录的变量
export TOBA_INSTANCIA=$nombre_instancia export TOBA_INSTALACION_DIR=$carpeta_instalacion
然后,以传统方式从bin目录(如果项目存在或从toba)通过命令行启动安装(这将允许用于应用程序的开发)
toba instalacion instalar [-modificadores]
此命令是交互式的,尽管可以使用修饰符来指定所需信息的一部分(要查看修饰符列表,请键入''toba instalacion instalar --help''),默认情况下,它将尝试加载位于''vendor/siu-toba/framework/proyectos''目录中的所有项目。安装完成后,将要求您将必要的别名添加到web服务器的配置中,以便于项目导航。
对于更可脚本化的环境(如Docker容器)的另一种选择是使用以下命令
toba instalacion_silenciosa instalar [--archivo_configuracion parameters.yml]
允许完全无人值守安装,配置信息存储在YAML文件中,数据库密钥和系统管理员信息通过单独的文本文件提供。这种安装方式不会在实例中加载任何项目,因此要使用toba_editor和toba_usuario,需要额外的步骤。然而,这可能是一种很好的手动生产安装方式,因为它允许生成具有相同配置的副本。
迁移项目到新版本
要迁移项目到新版本,建议以下步骤:
- 将项目文件夹复制到一个新的目录
- 安装SIU-Toba的新版本
- 通过以下命令导入项目,指定:
toba proyecto importar -p nombre_proyecto -d dir_instalacion_anterior --destino `pwd`