mirror of
https://github.com/php/doc-es.git
synced 2026-03-24 07:22:16 +01:00
82 lines
2.0 KiB
XML
82 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: e8ac70bf549a723cb36465667a6109d9933b8619 Maintainer: PhilDaiguille Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<chapter xml:id="ds.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.setup;
|
|
|
|
<section xml:id="ds.requirements">
|
|
&reftitle.required;
|
|
<para>
|
|
PHP 7 es requerido por la extensión y el polyfill de compatibilidad.
|
|
</para>
|
|
</section>
|
|
|
|
<section xml:id="ds.installation">
|
|
&reftitle.install;
|
|
<para>
|
|
La forma más sencilla de instalar la extensión es a través de <link xlink:href="&url.pecl.package;ds">PECL</link>
|
|
<screen>
|
|
<![CDATA[
|
|
pecl install ds
|
|
]]>
|
|
</screen>
|
|
</para>
|
|
|
|
<para>
|
|
Asimismo, se puede construir directamente a partir de la fuente:
|
|
|
|
<screen>
|
|
<![CDATA[
|
|
# Dependencias que podrían ser necesarias instalar
|
|
# sudo apt-get install git build-essential php7.0-dev
|
|
|
|
git clone https://github.com/php-ds/extension "php-ds"
|
|
cd php-ds
|
|
|
|
# Compilar e instalar la extensión
|
|
phpize
|
|
./configure
|
|
make
|
|
make install
|
|
|
|
# Limpiar los ficheros de compilación
|
|
make clean
|
|
phpize --clean
|
|
]]>
|
|
</screen>
|
|
|
|
</para>
|
|
|
|
<note>
|
|
<para>
|
|
Si se utiliza Composer, se recomienda encarecidamente incluir
|
|
<link xlink:href="&url.packagist.package;php-ds/php-ds">php-ds/php-ds</link>
|
|
en el proyecto para que el código sea siempre funcional en un entorno donde la extensión
|
|
no esté instalada. La extensión tendrá prioridad si está instalada.
|
|
</para>
|
|
</note>
|
|
</section>
|
|
|
|
</chapter>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|