Usando PHP
¿Qué es PHP?
PHP (Hypertext Preprocessor) es un lenguaje de script de código abierto y de uso general, especialmente adecuado para el desarrollo web y puede incrustarse en HTML. La sintaxis de PHP incorpora características de C, Java y Perl, lo que lo hace fácil de aprender y usar. La potencia de PHP reside en su capacidad para integrarse sin problemas con varios sistemas de bases de datos y servicios.
Soporte de ServBay para PHP
ServBay ofrece soporte para múltiples versiones de PHP, lo que garantiza que pueda elegir la versión adecuada según las necesidades de su proyecto para su desarrollo y despliegue. A continuación, se muestran algunas versiones comunes de PHP que soporta ServBay:
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4 (dev)
Estas versiones cubren tanto las versiones obsoletas sin soporte oficial como las versiones más recientes, asegurando que pueda seleccionar la más adecuada para su desarrollo.
TIP
ServBay ya viene con Composer preinstalado, por lo que no necesita instalarlo por separado.
Método de instalación
Puede instalar y gestionar PHP fácilmente a través del panel GUI de ServBay. A continuación, se muestran los pasos para instalar PHP mediante el panel GUI de ServBay:
- Abra el panel GUI de ServBay.
- Navegue a la sección
Servicios
. - Seleccione la versión de PHP que necesita.
- Haga clic en el botón verde
Instalar
y espere a que se complete la instalación.
Módulos incluidos
ServBay proporciona múltiples módulos para PHP, facilitando la expansión de las funcionalidades de PHP:
- GD: Biblioteca para el procesamiento de imágenes. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- IMAP: Biblioteca para el manejo de correos electrónicos. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- Imagick: Extensión de PHP para ImageMagick. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- Memcache: Sistema de caché de objetos en memoria. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- Memcached: Sistema de caché distribuido de alto rendimiento en memoria. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- MySQL: Extensión de PHP para la base de datos MySQL. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- OpenLDAP: Extensión de PHP para el Protocolo Ligero de Acceso a Directorios. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- PgSQL: Extensión de PHP para la base de datos PostgreSQL. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- Redis: Sistema de almacenamiento clave-valor de alto rendimiento. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- SQLite 3: Motor de base de datos SQL ligero. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- Sodium: Biblioteca para operaciones de encriptación. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- cURL: Biblioteca para la transferencia de datos. Instalado y habilitado de manera predeterminada, no requiere configuración adicional.
- MongoDB: Extensión de PHP para interactuar con la base de datos MongoDB. Consulte cómo habilitar el módulo MongoDB de ServBay.
- OPcache: Módulo de caché para acelerar la ejecución de scripts PHP. Consulte cómo habilitar el módulo OPcache de ServBay.
- Phalcon: Extensión del framework PHP de alto rendimiento. Consulte cómo habilitar el módulo Phalcon de ServBay.
- SCWS: Extensión de PHP para el sistema de división de palabras en chino. Consulte cómo habilitar el módulo SCWS de ServBay.
- Swoole: Extensión del framework de corrutinas de alto rendimiento para PHP. Consulte cómo habilitar el módulo Swoole de ServBay.
- Xdebug: Extensión para el análisis y depuración de PHP. Consulte cómo habilitar el módulo Xdebug de ServBay.
Para obtener tutoriales detallados, consulte los siguientes enlaces:
- GD
- IMAP
- Imagick
- Memcache
- Memcached
- MySQL
- OpenLDAP
- PgSQL
- Redis
- SQLite 3
- Sodium
- cURL
- MongoDB
- OPcache
- Phalcon
- SCWS
- Swoole
- Xdebug
Tutoriales
ServBay ofrece una rica variedad de tutoriales para el uso de frameworks y CMS en PHP, que cubren el desarrollo tanto del lado del cliente como del servidor. A continuación, algunos tutoriales de uso de frameworks y CMS comunes:
Frameworks PHP
- CakePHP: Un framework PHP de desarrollo rápido. Consulte cómo crear y ejecutar un proyecto CakePHP.
- CodeIgniter: Un sencillo y poderoso framework PHP. Consulte cómo crear y ejecutar un proyecto CodeIgniter.
- FuelPHP: Un framework PHP flexible. Consulte cómo crear y ejecutar un proyecto FuelPHP.
- Laravel: Un elegante framework web PHP. Consulte cómo crear y ejecutar un proyecto Laravel.
- Phalcon: Un framework PHP de alto rendimiento. Consulte cómo crear y ejecutar un proyecto Phalcon.
- PHPixie: Un framework PHP rápido y ligero. Consulte cómo crear y ejecutar un proyecto PHPixie.
- Slim: Un microframework para aplicaciones web pequeñas. Consulte cómo crear y ejecutar un proyecto Slim.
- Swoole: Un framework PHP de corrutinas de alto rendimiento. Consulte cómo crear y ejecutar un proyecto Swoole.
- Symfony: Un framework PHP de alto rendimiento. Consulte cómo crear y ejecutar un proyecto Symfony.
- Webman: Un marco PHP asincrónico de alto rendimiento. Consulte cómo crear y ejecutar un proyecto Webman.
- Workerman: Un framework PHP eficiente para aplicaciones en tiempo real. Consulte cómo crear y ejecutar un proyecto Workerman.
- Yii 2: Un framework PHP de alto rendimiento adecuado para aplicaciones a gran escala. Consulte cómo crear y ejecutar un proyecto Yii 2.
- Zend Framework: Un framework para la construcción de aplicaciones web de alto rendimiento. Consulte cómo crear y ejecutar un proyecto Zend Framework.
CMS PHP
- Bedrock: Un stack de desarrollo moderno para WordPress. Consulte Bedrock.
- Contao: Un sistema de gestión de contenido de código abierto. Consulte Contao.
- Craft CMS: Un sistema de gestión de contenido flexible. Consulte Craft CMS.
- Drupal: Una plataforma de gestión de contenido de código abierto. Consulte Drupal.
- ExpressionEngine: Un sistema flexible de gestión de contenido. Consulte ExpressionEngine.
- Jigsaw: Un generador de sitios estáticos. Consulte Jigsaw.
- Joomla: Un sistema de gestión de contenido de código abierto. Consulte Joomla.
- Kirby: Un CMS basado en archivos. Consulte Kirby.
- OctoberCMS: Un moderno CMS para PHP. Consulte OctoberCMS.
- Sculpin: Un generador de sitios estáticos. Consulte Sculpin.
- Statamic: Un CMS sin base de datos. Consulte Statamic.
- WordPress: Un popular sistema de gestión de contenido. Consulte WordPress.
Con estos tutoriales, puede utilizar ServBay para comenzar rápidamente y usar estos populares frameworks y CMS para el desarrollo.