mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
83 lines
2.0 KiB
XML
83 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: e8ac70bf549a723cb36465667a6109d9933b8619 Maintainer: leonardolara Status: ready --><!-- CREDITS: fernandowobeto,leonardolara -->
|
|
|
|
<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 é necessário tanto para a extensão quanto para o polyfill de compatibilidade.
|
|
</para>
|
|
</section>
|
|
|
|
<section xml:id="ds.installation">
|
|
&reftitle.install;
|
|
<para>
|
|
A maneira mais fácil de instalar a extensão é através do <link xlink:href="&url.pecl.package;ds">PECL</link>
|
|
<screen>
|
|
<![CDATA[
|
|
pecl install ds
|
|
]]>
|
|
</screen>
|
|
</para>
|
|
|
|
<para>
|
|
Pode-se também compilar diretamente a partir do código-fonte:
|
|
|
|
<screen>
|
|
<![CDATA[
|
|
# Dependências que talvez precisem ser instaladas
|
|
# sudo apt-get install git build-essential php7.0-dev
|
|
|
|
git clone https://github.com/php-ds/extension "php-ds"
|
|
cd php-ds
|
|
|
|
# Compila e instala a extensão
|
|
phpize
|
|
./configure
|
|
make
|
|
make install
|
|
|
|
# Limpa os arquivos de compilação
|
|
make clean
|
|
phpize --clean
|
|
]]>
|
|
</screen>
|
|
|
|
</para>
|
|
|
|
<note>
|
|
<para>
|
|
Se estiver usando o Composer, é altamente recomendável incluir
|
|
<link xlink:href="&url.packagist.package;php-ds/php-ds">php-ds/php-ds</link>
|
|
em seu projeto para que seu código continue funcional em um ambiente onde a
|
|
extensão não está instalada. A extensão terá prioridade se estiver 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
|
|
-->
|