PHPackages                             akmnahid/sustainable-home-construction-material-optimizer - 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. akmnahid/sustainable-home-construction-material-optimizer

ActiveLibrary

akmnahid/sustainable-home-construction-material-optimizer
=========================================================

A PHP package for optimizing sustainable home construction materials.

v1.0.0(1y ago)12MITPHPPHP ^8.1

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/akmnahid/Sustainable-Home-Construction-Material-Optimizer)[ Packagist](https://packagist.org/packages/akmnahid/sustainable-home-construction-material-optimizer)[ Docs](https://www.akmnahid.com)[ RSS](/packages/akmnahid-sustainable-home-construction-material-optimizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Sustainable Home Construction Material Optimizer
================================================

[](#sustainable-home-construction-material-optimizer)

This project is a **Sustainable Home Construction Material Optimizer** that allows users to compare the cost and environmental impact of various materials for construction projects. All materials are measured and priced **per square foot** for consistency.

Features
--------

[](#features)

- **User Input**: Users can input their **budget**, **area to cover (in square feet)**, and a maximum allowed **environmental impact score**.
- **Material Selection**: Users can select multiple materials from a predefined list, and the system will calculate the total cost and environmental impact of each material for the given area.
- **Results Filtering**: Only materials that fall within the user's budget and environmental impact threshold will be displayed.

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

[](#installation)

1. **Clone the repository**:

    ```
    git clone git@github.com:akmnahid/Sustainable-Home-Construction-Material-Optimizer.git
    ```
2. **Install dependencies using Composer**:

    ```
    composer install
    ```
3. **Run the application**:

    - For a local development server: ```
        php -S localhost:8000
        ```
4. **Open the application** in your browser:

    ```
    http://localhost:8000/index.php

    ```

### Install via Composer

[](#install-via-composer)

To include this package in your project, run the following command:

```
composer require akmnahid/sustainable-home-construction-material-optimizer
```

How to Use
----------

[](#how-to-use)

1. **Input your budget**: Enter the maximum amount you are willing to spend on materials for your construction project.
2. **Input the area to cover**: Enter the total area you need to cover in **square feet**.
3. **Input the maximum environmental impact score**: Choose the maximum environmental impact score you are willing to accept for the materials (e.g., 40).
4. **Select materials**: Choose from the available materials, and the system will calculate the cost of covering the area with each selected material.
5. **Submit**: Click the **Optimize** button to see a list of materials that meet your criteria. The results will display the total cost and environmental impact for each material.

Example
-------

[](#example)

Imagine you need to cover **500 square feet** with a budget of **$1000** and an environmental impact threshold of **40**.

- You select **Bamboo** and **Recycled Steel** as your materials.
- The system calculates the total cost for each material and displays only the materials that fit your budget and environmental impact score.

### Sample Form:

[](#sample-form)

- **Budget**: `$1000`
- **Area to Cover**: `500 sq ft`
- **Max Environmental Impact Score**: `40`
- **Selected Materials**: `Bamboo`, `Recycled Steel`

### Sample Output:

[](#sample-output)

```
Material: Bamboo - Cost: $20/sq ft, Environmental Impact: 30, Available in: Asia
Total Cost: $500.00

Material: Recycled Steel - Cost: $50/sq ft, Environmental Impact: 40, Available in: Global
Total Cost: $1000.00

```

File Structure
--------------

[](#file-structure)

```
/sustainable-home-construction
├── composer.json          # Composer configuration
├── index.php              # Main entry point for the application
├── src/
│   ├── DataProvider.php   # Interface for providing materials data
│   ├── Material.php       # Material class representing the construction materials
│   ├── MaterialOptimizer.php  # Logic for optimizing materials based on input
│   └── MaterialsData.php  # Implementation of DataProvider, providing materials measured in square feet
├── vendor/                # Composer-generated folder for dependencies
└── public/                # Static assets (e.g., CSS, JS)

```

Customization
-------------

[](#customization)

- **Adding new materials**: To add new materials, update the `MaterialsData.php` file and include the material name, cost, environmental impact score, and unit.
- **Adjusting unit measurement**: This project assumes that all materials are measured in **square feet**. If you want to add other units (e.g., cubic meters), you can modify the `Material` class and the logic for unit conversions.

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86813679886983f5d4965996b1e5676d29083a38ea1f512a416d9369e19ff5d8?d=identicon)[akmnahid](/maintainers/akmnahid)

---

Top Contributors

[![akmnahid](https://avatars.githubusercontent.com/u/4361347?v=4)](https://github.com/akmnahid "akmnahid (5 commits)")

### Embed Badge

![Health badge](/badges/akmnahid-sustainable-home-construction-material-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/akmnahid-sustainable-home-construction-material-optimizer/health.svg)](https://phpackages.com/packages/akmnahid-sustainable-home-construction-material-optimizer)
```

PHPackages © 2026

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