Download the PHP package aa-ahmed-aa/dorm without Composer
On this page you can find all versions of the php package aa-ahmed-aa/dorm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aa-ahmed-aa/dorm
More information about aa-ahmed-aa/dorm
Files in aa-ahmed-aa/dorm
Package dorm
Short Description This is a compiler package for compiling and running c and cpp files this package is designed to can add any other compilers later.
License MIT
Informations about the package dorm
Dorm
This is a package for running and compiling your c and c++ files add the compiler to the configurations file and you are ready to go :boom: .
Run TestCases & Coverage
- Test cases
composer run-script test
. - Code Cvoverage
composer run-script coverage
.:honey_pot: Install
You can install the package using
composer require aa-ahmed-aa/dorm
:hammer: Configuration
First you need to install compilers and configure their paths in
src/Core/Config.php
C++
- you can find the MinGW compiler Here
- after you download the compiler files copy the
MinGW
folder to yourC://
drive
Java
- install jdk and configure the path in your environment variables you can find the judk Here
Python
- install python from Here
- if you want this package to handle both versions of
python2.x
andpython3.x
the package already do this and you can look at This Question to cnfigure both of them on the command line
:flashlight: Usage
First you need to setCompilationPath
in this path the package will create files of the code and compile and run your code
so let's compile and run your first cpp code
Now lets compile and run some real code
C++
here we compile and run c++ code and print the result
Java
Python
:electric_plug: Add your compiler
You can check this blog post for more information.
This package is designed to handle compile/run of any other compilers in your project
Steps
- Add your customized key for your configuration to use it later in your compile and run function see
src/Core/Config.php
. - Add your new
StrategyTrait
insrc/Strategy/
folder with your run and compile funcion you can see examples like theJavaTrait
andCAndCPPStrategy
then add a use of yourStrategyTrait
in thesrc/Core/Core.php
class - Test and Bom your compiler is there.
License
The MIT License (MIT). Please see License File for more information.