Download the PHP package codecasts/codecasts without Composer
On this page you can find all versions of the php package codecasts/codecasts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package codecasts
CODECASTS
Application's GIT Repository. This document should be the ultimate guide on running and specs about the application source code.
Build status
Branch | Environment | URL | Status | Test Coverage | Code Style |
---|---|---|---|---|---|
master |
production |
https://codecasts.com.br | |||
develop |
staging |
https://staging.codecasts.com.br |
Index
- Build status
- Development
- Requirements
- Operating the docker environment
- Starting services
- Stopping services
- Running internal commands
- List of Services
- Coding Guide Lines
- Style
- Unit Testing
Development
For using the docker version (recommended) of the environment, you first need to stop local services like MySQL, Redis, Elasticsearch and webservers running on port 80.
Requirements
- Docker >= 1.10.3.
- docker-compose, if not already bundled in your docker install.
- A virtual host named codecasts.app pointing to 127.0.0.1, this step is needed since the social login callbacks are using this URL.
Operating the docker environment
Starting services
-
Option 1: Keeping the output visible on the terminal
- Option 2 : Sending the output of the services to background
Stopping services
-
Option 1: When the output is visible (started with option 1), just hit
control + c
to stop it. - Option 2: When the services are on background or failed to stop with
control + c
, you can stop them with the following command:
Running internal commands
When commands like artisan are needed, those commands would need to run inside the docker containers, to do so, use the following sintax:
For example. to run migrations, you can do:
Another example, starting a terminal inside the MySQL service
List of Services
The service names can be located inside the docker-compose.yml
file, right now, the following are enabled:
Service | Description |
---|---|
cache |
Runs a Redis 3.2 Instance for Cache and queues |
mysql |
Runs a MySQL 5.7 Instance for Database |
app |
PHP and Caddy Instance that runs the apllication |
queue |
A PHP-CLI container, running php artisan queue:listen command |
elastic |
Elasticsearch instance for search indexing |
Coding Guide Lines
Style
PSR-1 & PSR-2 should be enforced, a copy of php-cd-fixer is distributed along with the PHP Docker image, so the following command can automatically format the code before commiting:
As a alternative, you can alias that command as psr2
or other name:
Unit Testing
Following the same structure of existing tests, the main rule it keep tests under the same namespace as the class being tested, in order to avoid useless imports and keep code cleaner
Code coverage as HTML is already ignored on git when generated on the coverage
directory, to run tests with coverage reports, use
All versions of codecasts with dependencies
laravel/framework Version 5.3.*
league/fractal Version ^0.13.0
predis/predis Version ^1.1
artesaos/warehouse Version 2.x-dev
artesaos/migrator Version ^1.0
guzzlehttp/guzzle Version ~5.3|~6.0
adamwathan/eloquent-oauth-l5 Version ^0.5.1
artesaos/seotools Version ^0.9.2
codecasts/flysystem-aws-s3-v3 Version ^1.0
iugu/iugu Version ^1.0
sentry/sentry-laravel Version ^0.3.0
maknz/slack Version ^1.7
vinkla/vimeo Version ^3.3
barryvdh/laravel-debugbar Version ^2.2
laravelcollective/html Version ^5.2
mashape/unirest-php Version ^3.0
elasticsearch/elasticsearch Version ^2.2