The ProcoreAPI Invoice Generator is a web application designed to facilitate the generation of AIA G702/G703 invoices using data from the Procore API. This application allows users to log in with their Procore API credentials, select a company, and generate invoices based on project budget data.
ProcoreAPI-Invoice
├── config
│ └── config.php
├── includes
│ └── session.php
├── src
│ ├── AiaGenerator.php
│ ├── FileDownloader.php
│ └── ProcoreApi.php
├── templates
│ ├── footer.php
│ ├── header.php
│ ├── company_select.php
│ ├── invoice_form.php
│ └── login_form.php
├── index.php
└── README.md
-
Clone the Repository Clone the repository to your local machine using:
git clone <repository-url>
-
Install Dependencies Ensure that you have PHP and a web server (like Apache or Nginx) installed. You may also need to install Composer for dependency management if required.
-
Configuration Open the
config/config.php
file and enter your Procore API credentials:$config['client_id'] = 'YOUR_CLIENT_ID'; $config['client_secret'] = 'YOUR_CLIENT_SECRET';
-
Start the Server Navigate to the project directory and start your local server. For example, if using PHP's built-in server:
php -S localhost:8000
-
Access the Application Open your web browser and go to
http://localhost:8000/index.php
to access the application.
- Login: Enter your Procore API credentials in the login form.
- Select Company: After logging in, select a company from the dropdown list.
- Generate Invoice: Fill in the invoice form with project-specific information and click the generate button to download the invoice as an Excel file.
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.