PHPackages                             afrzlfa/githubcrud - 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. afrzlfa/githubcrud

ActiveLibrary

afrzlfa/githubcrud
==================

v1.0.0(1y ago)04mitPHP

Since Jan 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/afrzlfa/GithubCRUD)[ Packagist](https://packagist.org/packages/afrzlfa/githubcrud)[ RSS](/packages/afrzlfa-githubcrud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

GitHub CRUD Library
===================

[](#github-crud-library)

A simple PHP library for managing GitHub repository files using the GitHub API.

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

[](#installation)

Install the library using Composer:

```
composer require afrzlfa/githubcrud
```

Usage
-----

[](#usage)

Here's an example of how to use the library:

```
require 'vendor/autoload.php';

use Afrzlfa\Githubcrud;

$config = [
    'token' => 'YOUR_GITHUB_TOKEN',
    'username' => 'YOUR_GITHUB_USERNAME',
    'repository' => 'YOUR_REPOSITORY_NAME',
    'branch' => 'main' // or any branch name
];

$github = new Githubcrud($config);

// Create a file
$github->createFile('example.txt', 'Hello, World!');

// Edit a file
$github->editFile('example.txt', 'Updated content');

// Read a file
$content = $github->readFile('example.txt');

echo $content;

// Delete a file
$github->deleteFile('example.txt');
```

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer

License
-------

[](#license)

This library is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

489d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a08afde04b12344ea6f1ac9cde314ae393a9856aa2265c359648959d07d40f81?d=identicon)[afrzlfa](/maintainers/afrzlfa)

---

Top Contributors

[![HarshXor](https://avatars.githubusercontent.com/u/77115748?v=4)](https://github.com/HarshXor "HarshXor (9 commits)")

### Embed Badge

![Health badge](/badges/afrzlfa-githubcrud/health.svg)

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

PHPackages © 2026

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