PHPackages                             alisal1992/csvtoredirects - 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. alisal1992/csvtoredirects

ActiveLibrary

alisal1992/csvtoredirects
=========================

Create redirects from CSV file.

v1.0(4y ago)03OSL-3.0PHPPHP ^7.4

Since May 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AliSal92/csvtoredirects)[ Packagist](https://packagist.org/packages/alisal1992/csvtoredirects)[ RSS](/packages/alisal1992-csvtoredirects/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

CSVToRedirects
==============

[](#csvtoredirects)

CSVToRedirects is a PHP library used to create redirects from CSV file, and compatible with PHP **7.4**.

It allows the creation of hundreds of redirects with ease using CSV files.

You must use Composer to install this library.

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

[](#requirements)

CSVToRedirects works with PHP &gt;7 and Composer.

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

[](#installation)

Installation is easy using Composer. Just run the following on the command line:

```
composer require alisal1992/csvtoredirects

```

If you don't use a framework such as Drupal, Laravel, Symfony, Yii etc., you may have to manually include Composer's autoloader file in your PHP script:

```
require_once __DIR__ . 'vendor/autoload.php';
```

Example Usage
-------------

[](#example-usage)

```
use AliSal\Csvtoredirects;
$redirects = new Csvtoredirects('redirects.csv');
$redirects->start();
```

redirects.csv content:

fromtooperatortype=302mywebsite.com/somepage/contains301mywebsite.com/somepage/index.phpcontains301if the current URL matches any redirect in the csv, the redirect will start.

Help &amp; Support
------------------

[](#help--support)

For questions and bug reports, please use the GitHub issues page.

License
-------

[](#license)

This program is distributed under the OSL License. For more information see the [./LICENSE.md](./LICENSE.md) file.

Copyright 2021 by Ali Alsalti

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

1809d ago

### Community

Maintainers

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

---

Top Contributors

[![ahmedabed92](https://avatars.githubusercontent.com/u/66001536?v=4)](https://github.com/ahmedabed92 "ahmedabed92 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alisal1992-csvtoredirects/health.svg)

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

###  Alternatives

[azishapidin/indoregion

Package containing region of Indonesia (provinces, regencies, districts, and villages) for Laravel

27274.9k](/packages/azishapidin-indoregion)[andes2912/indobank

List Bank of Indonesian

2110.1k](/packages/andes2912-indobank)[minuteoflaravel/laravel-csv-validator

Adds CSV validator to your Laravel project

1711.4k](/packages/minuteoflaravel-laravel-csv-validator)

PHPackages © 2026

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