Towards resilient urban energy systems, prosumers play a crucial role in shaping sustainable energy practices. This study investigates how photovoltaic (PV) systems as the most common energy flexibility measure in context of prosumers can enhance self-sufficiency and contribute to a resilient energy future.This study introduces an integrated modeling approach to evaluate a simplified techno-enviro-economic assessment of photovoltaic (PV) system integration at different types of prosumers by residential buildings (both single and multifamily house), and industrial prosumers, each characterized by distinct load profiles. TRNSYS employed for electricity production modelling in different scenarios to ensure accuracy and reliability in capturing the dynamic interaction between energy consumption and production. Then model outcomes are used in an analytical assessment to find self-consumption efficiencies. This allows us to evaluate consumption levels and displays the ratio of direct solar energy consumption to total solar production over different seasons. In addition, the model quantifies the amount of electricity purchased from the grid to account for own consumption and helps evaluate electricity dependency It also examines excess electricity a is fed into the power grid, providing a detailed overview of the excess electricity to be generated and the feed conditions. Eventually, an environmental analysis is performed to estimate the total CO2-equivalent savings from PV integration.The main expected result in this research includes but not limited to direct self-consumption, storage, and surplus productions; total savings and incomes; internal rate of return; payback time and total CO2 mitigation for all different scenarios and studied cases. Additionally, the research outcomes in this study aid in enhancing energy resilience. These findings collectively emphasize the versatility and positive impact of PV systems in prosumers and contributing to a sustainable urban energy future.