2017 © Pedro Peláez
 

library php

CS50 library for PHP

image

cs50/php

CS50 library for PHP

  • Friday, May 25, 2018
  • by dmalan
  • Repository
  • 13 Watchers
  • 4 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

CS50 Library for PHP

Development

Requires Docker Toolbox., (*1)

docker-compose run cli # runs CS50 CLI

Installation

Ubuntu:

$ curl -s https://packagecloud.io/install/repositories/cs50/repo/script.deb.sh | sudo bash
$ sudo apt-get install php-cs50

Fedora

$ curl -s https://packagecloud.io/install/repositories/cs50/repo/script.rpm.sh | sudo bash
$ sudo yum install php-cs50

From Source

  1. Download the latest release from https://github.com/cs50/php-cs50/releases
  2. Extract php-cs50*
  3. cd php-cs50
  4. make install # may require sudo

By default, we install to /usr/local/share/php. If you'd like to change the installation location, run DESTDIR=/path/to/install make install as desired., (*2)

Usage

// assumes CS50.php is in include_path
require("CS50.php");

...

$c = CS50\get_char();
$f = CS50\get_float();
$i = CS50\get_int();
$s = CS50\get_string();

TODO

  • Decide whether to add CS50.eprintf.
  • Add tests.
  • Review ID.php, Database.php, etc.

The Versions

25/05 2018

dev-master

9999999-dev https://github.com/cs50/php-cs50

CS50 library for PHP

  Sources   Download

MIT

The Requires

 

by Avatar cs50

cs50

25/05 2018

dev-develop

dev-develop https://github.com/cs50/php-cs50

CS50 library for PHP

  Sources   Download

MIT

The Requires

 

by Avatar cs50

cs50

25/05 2018

v6.0.0

6.0.0.0 https://github.com/cs50/php-cs50

CS50 library for PHP

  Sources   Download

MIT

The Requires

 

by Avatar cs50

cs50

25/05 2018

dev-repo

dev-repo https://github.com/cs50/php-cs50

CS50 library for PHP

  Sources   Download

MIT

The Requires

 

by Avatar cs50

cs50

24/05 2018

dev-packagecloud

dev-packagecloud https://github.com/cs50/php-cs50

CS50 library for PHP

  Sources   Download

MIT

The Requires

 

by Avatar cs50

cs50