Download the PHP package yusufs/grader without Composer

On this page you can find all versions of the php package yusufs/grader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package grader

GRADER

This is a library to create an online judge system based on PHP. Now you can easily compile or even run your program from PHP with only one line of code. Do not worry about the risk of damage to the system by malicious programs, because this library uses openjudge/sandbox used in online judge system for ACM/ICPC training. Refer to: https://openjudge.net/Solution/Sandbox and https://github.com/openjudge/sandbox

keyword: open judge, online judge php, laravel online judge

INSTALLATION

You can download a copy or clone from this repository if you want. But, there are easy way to include this library in to your project using Composer. Please include this in require composer.json:

Setting up the library

Before using this library, there are several steps that must be done.

First, install sandbox library. I promise you need this, even at the first you say "WHAT THE HELL ABOUT THIS CONFIGURATION PROCESS". You need this to prevent malicious program damaging your system.

After that you have to compile the sandbox program. Compile sandbox.c with this following command:

Note:

Please make this following file is chmod 775

Finishing up! Don't forget to make storage directory in the root of your project, since this library will save all file in there.

for example if you are using laravel 4.2.* the tree structure will look like this:

Now you must have those tree look like this

Done! Now you can use this library

USAGE

Here's the flow:

Here's is the status code:

Save the code or script

@param file extension @param code

example output

Compile code to program

@param filename of script

example output

Save the input

@param content of input

example output

Run the program

@param program filename (the same as the script name) @param input filename @param time limit (in seconds) @param memory limit (in kiloBytes)

example output

Compare program

used to compare the output of the two programs at once

example output

A BACKGROUND

there is no effect without cause - Yusuf Syaifudin, November 6, 2014 01:51AM

This library was made in furtherance of college assignment (TUGAS KHUSUS), where I feel I write code that is less neat, it is difficult to overhaul. "So, why not just make the library?" I thought. For that this library is created.

LICENSE


All versions of grader with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yusufs/grader contains the following files

Loading the files please wait ....