PHPackages                             cs50/php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cs50/php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cs50/php
========

CS50 library for PHP

v6.0.1(5y ago)11184MITPHPPHP &gt;=5.4CI failing

Since May 25Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/cs50/php-cs50)[ Packagist](https://packagist.org/packages/cs50/php)[ Docs](https://github.com/cs50/php-cs50)[ RSS](/packages/cs50-php/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (3)Versions (4)Used By (0)

CS50 Library for PHP
====================

[](#cs50-library-for-php)

Development
-----------

[](#development)

Requires [Docker Toolbox](https://www.docker.com/products/docker-toolbox).

```
docker-compose run cli # runs CS50 CLI

```

Installation
------------

[](#installation)

### Ubuntu:

[](#ubuntu)

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

```

### Fedora

[](#fedora)

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

```

### From Source

[](#from-source)

1. Download the latest release from
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.

Usage
-----

[](#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
----

[](#todo)

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

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance50

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 78.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~925 days

Total

2

Last Release

2025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15ace907c6786cf0cdf7877d0ae1115820df0e80e92a000e68c8a21a51fd24ab?d=identicon)[dmalan](/maintainers/dmalan)

![](https://www.gravatar.com/avatar/07b6ed1f15a6e8caf858edf97539089096f39accd65450a3a7db0066cd055112?d=identicon)[cs50](/maintainers/cs50)

---

Top Contributors

[![dmalan](https://avatars.githubusercontent.com/u/788678?v=4)](https://github.com/dmalan "dmalan (48 commits)")[![rongxin-liu](https://avatars.githubusercontent.com/u/10591665?v=4)](https://github.com/rongxin-liu "rongxin-liu (9 commits)")[![rbowden91](https://avatars.githubusercontent.com/u/1164088?v=4)](https://github.com/rbowden91 "rbowden91 (4 commits)")

---

Tags

cs50

### Embed Badge

![Health badge](/badges/cs50-php/health.svg)

```
[![Health](https://phpackages.com/badges/cs50-php/health.svg)](https://phpackages.com/packages/cs50-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k77.4k88](/packages/pocketmine-pocketmine-mp)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[php-soap/wsdl

Deals with WSDLs

183.8M18](/packages/php-soap-wsdl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
