Download the PHP package akmnahid/sustainable-home-construction-material-optimizer without Composer
On this page you can find all versions of the php package akmnahid/sustainable-home-construction-material-optimizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akmnahid/sustainable-home-construction-material-optimizer
More information about akmnahid/sustainable-home-construction-material-optimizer
Files in akmnahid/sustainable-home-construction-material-optimizer
Package sustainable-home-construction-material-optimizer
Short Description A PHP package for optimizing sustainable home construction materials.
License MIT
Homepage https://www.akmnahid.com
Informations about the package 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
- 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
-
Clone the repository:
-
Install dependencies using Composer:
-
Run the application:
- For a local development server:
- Open the application in your browser:
Install via Composer
To include this package in your project, run the following command:
How to Use
-
Input your budget: Enter the maximum amount you are willing to spend on materials for your construction project.
-
Input the area to cover: Enter the total area you need to cover in square feet.
-
Input the maximum environmental impact score: Choose the maximum environmental impact score you are willing to accept for the materials (e.g., 40).
-
Select materials: Choose from the available materials, and the system will calculate the cost of covering the area with each selected material.
- 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
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:
- Budget:
$1000
- Area to Cover:
500 sq ft
- Max Environmental Impact Score:
40
- Selected Materials:
Bamboo
,Recycled Steel
Sample Output:
File Structure
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
This project is licensed under the MIT License.