https://github.com/miguelhp373/php_orientado_a_objetos
:elephant: Curso de POO com PHP - Node Studios Treinamentos
https://github.com/miguelhp373/php_orientado_a_objetos
class methods mvc object php7 poo
Last synced: 7 months ago
JSON representation
:elephant: Curso de POO com PHP - Node Studios Treinamentos
- Host: GitHub
- URL: https://github.com/miguelhp373/php_orientado_a_objetos
- Owner: miguelhp373
- License: mit
- Created: 2021-02-10T20:27:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-31T19:24:04.000Z (about 5 years ago)
- Last Synced: 2025-01-15T12:14:38.788Z (about 1 year ago)
- Topics: class, methods, mvc, object, php7, poo
- Language: PHP
- Homepage:
- Size: 3.77 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composer
### Serve para usar bibliotecas de terceiros
---
Repositorios:
[https://packagist.org/](https://packagist.org/)
[https://www.php-fig.org/](https://www.php-fig.org/)
---
## Exemplo de Criação um repositorio composer
```powershell
composer init
Package name (/)[user/projeto]: usuarionome/nomedopacote
Description[]:
Author[, n to skip]: nome
Minimum Stability[]:
Package Type[]:
License[]:
Define your dependencies(require).
[yes]?yes
Search for a package: dompdf/dompdf
latest version: 0.8.3 //automatico se vazio
confirm[yes]?
```
## Instalando um Pacote
```powershell
composer require nomedorepositorio/nomedopacote
```
## Remover pacotes
primeiro, remova a linha do pacote, no composer.json
```powershell
composer update
```
## Instalar Manualmente uma Biblioteca - Exemplo
composer.json
```json
{
require:{
"cocur/slugify":"3.2"
}
}
```
prompt
```powershell
composer install
```
index.php
```php
require_once('vendor/autoload.php')
```