Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CleverCloud/php-composer-example
Run PHP with Composer on Clever Cloud
https://github.com/CleverCloud/php-composer-example
clevercloud-example composer php
Last synced: about 2 months ago
JSON representation
Run PHP with Composer on Clever Cloud
- Host: GitHub
- URL: https://github.com/CleverCloud/php-composer-example
- Owner: CleverCloud
- Created: 2016-06-27T13:01:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T13:43:09.000Z (over 8 years ago)
- Last Synced: 2024-08-04T17:08:47.699Z (5 months ago)
- Topics: clevercloud-example, composer, php
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 16
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-clever-cloud - demo-php-composer
README
# PHP composer demo
Here is how to use composer on [Clever Cloud](https://www.clever-cloud.com).
Basically, you have to create your own composer.json at the root of the application
and its dependencies will be installed.Here is our documentation about [composer](https://www.clever-cloud.com/doc/php/php-apps/#composer)
## Custom version of composer
If you need a specific version of composer, you can also commit your own `composer.phar`
at the root of the application and it will be used to install your dependencies.## Custom scripts
Sometimes, you need to build your assets or execute certain tasks when your deployment
is finished. Via composer, you can automate these tasks through its [scripts](https://getcomposer.org/doc/articles/scripts.md)## Node build
On Clever Cloud, you have access to [Node.js](https://nodejs.org) on PHP instances, so if you have `grunt` or `gulp`
(or any other task manager / scripts), you can create a custom script to install and execute your tasks.
Have a look at [composer.json](composer.json) and [build script](scripts/install.sh) to have an example.## Test !
You can login / register (with 20€ of free credits to test) on our [Dashboard](https://console.clever-cloud.com).
Then, clone / fork this repo and create your [own application](https://www.clever-cloud.com/doc/clever-cloud-overview/add-application/).